com.pulumi.azure.network.VpnServerConfigurationPolicyGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.network;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.network.VpnServerConfigurationPolicyGroupArgs;
import com.pulumi.azure.network.inputs.VpnServerConfigurationPolicyGroupState;
import com.pulumi.azure.network.outputs.VpnServerConfigurationPolicyGroupPolicy;
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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a VPN Server Configuration Policy Group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.network.VpnServerConfiguration;
* import com.pulumi.azure.network.VpnServerConfigurationArgs;
* import com.pulumi.azure.network.inputs.VpnServerConfigurationRadiusArgs;
* import com.pulumi.azure.network.VpnServerConfigurationPolicyGroup;
* import com.pulumi.azure.network.VpnServerConfigurationPolicyGroupArgs;
* import com.pulumi.azure.network.inputs.VpnServerConfigurationPolicyGroupPolicyArgs;
* 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 ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
*
* var exampleVpnServerConfiguration = new VpnServerConfiguration("exampleVpnServerConfiguration", VpnServerConfigurationArgs.builder()
* .name("example-VPNSC")
* .resourceGroupName(example.name())
* .location(example.location())
* .vpnAuthenticationTypes("Radius")
* .radius(VpnServerConfigurationRadiusArgs.builder()
* .servers(VpnServerConfigurationRadiusServerArgs.builder()
* .address("10.105.1.1")
* .secret("vindicators-the-return-of-worldender")
* .score(15)
* .build())
* .build())
* .build());
*
* var exampleVpnServerConfigurationPolicyGroup = new VpnServerConfigurationPolicyGroup("exampleVpnServerConfigurationPolicyGroup", VpnServerConfigurationPolicyGroupArgs.builder()
* .name("example-VPNSCPG")
* .vpnServerConfigurationId(exampleVpnServerConfiguration.id())
* .policies(VpnServerConfigurationPolicyGroupPolicyArgs.builder()
* .name("policy1")
* .type("RadiusAzureGroupId")
* .value("6ad1bd08")
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* VPN Server Configuration Policy Groups can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:network/vpnServerConfigurationPolicyGroup:VpnServerConfigurationPolicyGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Network/vpnServerConfigurations/serverConfiguration1/configurationPolicyGroups/configurationPolicyGroup1
* ```
*
*/
@ResourceType(type="azure:network/vpnServerConfigurationPolicyGroup:VpnServerConfigurationPolicyGroup")
public class VpnServerConfigurationPolicyGroup extends com.pulumi.resources.CustomResource {
/**
* Is this a default VPN Server Configuration Policy Group? Defaults to `false`. Changing this forces a new resource to be created.
*
*/
@Export(name="isDefault", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> isDefault;
/**
* @return Is this a default VPN Server Configuration Policy Group? Defaults to `false`. Changing this forces a new resource to be created.
*
*/
public Output> isDefault() {
return Codegen.optional(this.isDefault);
}
/**
* The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* One or more `policy` blocks as documented below.
*
*/
@Export(name="policies", refs={List.class,VpnServerConfigurationPolicyGroupPolicy.class}, tree="[0,1]")
private Output> policies;
/**
* @return One or more `policy` blocks as documented below.
*
*/
public Output> policies() {
return this.policies;
}
/**
* The priority of this VPN Server Configuration Policy Group. Defaults to `0`.
*
*/
@Export(name="priority", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> priority;
/**
* @return The priority of this VPN Server Configuration Policy Group. Defaults to `0`.
*
*/
public Output> priority() {
return Codegen.optional(this.priority);
}
/**
* The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
*
*/
@Export(name="vpnServerConfigurationId", refs={String.class}, tree="[0]")
private Output vpnServerConfigurationId;
/**
* @return The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
*
*/
public Output vpnServerConfigurationId() {
return this.vpnServerConfigurationId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public VpnServerConfigurationPolicyGroup(java.lang.String name) {
this(name, VpnServerConfigurationPolicyGroupArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public VpnServerConfigurationPolicyGroup(java.lang.String name, VpnServerConfigurationPolicyGroupArgs 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 VpnServerConfigurationPolicyGroup(java.lang.String name, VpnServerConfigurationPolicyGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:network/vpnServerConfigurationPolicyGroup:VpnServerConfigurationPolicyGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private VpnServerConfigurationPolicyGroup(java.lang.String name, Output id, @Nullable VpnServerConfigurationPolicyGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:network/vpnServerConfigurationPolicyGroup:VpnServerConfigurationPolicyGroup", name, state, makeResourceOptions(options, id), false);
}
private static VpnServerConfigurationPolicyGroupArgs makeArgs(VpnServerConfigurationPolicyGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? VpnServerConfigurationPolicyGroupArgs.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 VpnServerConfigurationPolicyGroup get(java.lang.String name, Output id, @Nullable VpnServerConfigurationPolicyGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new VpnServerConfigurationPolicyGroup(name, id, state, options);
}
}