
com.pulumi.azurenative.network.VpnSite 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.VpnSiteArgs;
import com.pulumi.azurenative.network.outputs.AddressSpaceResponse;
import com.pulumi.azurenative.network.outputs.BgpSettingsResponse;
import com.pulumi.azurenative.network.outputs.DevicePropertiesResponse;
import com.pulumi.azurenative.network.outputs.O365PolicyPropertiesResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.azurenative.network.outputs.VpnSiteLinkResponse;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* VpnSite Resource.
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
*
* Other available API versions: 2018-07-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
*
* ## Example Usage
* ### VpnSiteCreate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.network.VpnSite;
* import com.pulumi.azurenative.network.VpnSiteArgs;
* import com.pulumi.azurenative.network.inputs.AddressSpaceArgs;
* import com.pulumi.azurenative.network.inputs.O365PolicyPropertiesArgs;
* import com.pulumi.azurenative.network.inputs.O365BreakOutCategoryPoliciesArgs;
* import com.pulumi.azurenative.network.inputs.SubResourceArgs;
* import com.pulumi.azurenative.network.inputs.VpnSiteLinkArgs;
* import com.pulumi.azurenative.network.inputs.VpnLinkBgpSettingsArgs;
* import com.pulumi.azurenative.network.inputs.VpnLinkProviderPropertiesArgs;
* 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 vpnSite = new VpnSite("vpnSite", VpnSiteArgs.builder()
* .addressSpace(AddressSpaceArgs.builder()
* .addressPrefixes("10.0.0.0/16")
* .build())
* .isSecuritySite(false)
* .location("West US")
* .o365Policy(O365PolicyPropertiesArgs.builder()
* .breakOutCategories(O365BreakOutCategoryPoliciesArgs.builder()
* .allow(true)
* .default_(false)
* .optimize(true)
* .build())
* .build())
* .resourceGroupName("rg1")
* .tags(Map.of("key1", "value1"))
* .virtualWan(SubResourceArgs.builder()
* .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1")
* .build())
* .vpnSiteLinks(VpnSiteLinkArgs.builder()
* .bgpProperties(VpnLinkBgpSettingsArgs.builder()
* .asn(1234)
* .bgpPeeringAddress("192.168.0.0")
* .build())
* .fqdn("link1.vpnsite1.contoso.com")
* .ipAddress("50.50.50.56")
* .linkProperties(VpnLinkProviderPropertiesArgs.builder()
* .linkProviderName("vendor1")
* .linkSpeedInMbps(0)
* .build())
* .name("vpnSiteLink1")
* .build())
* .vpnSiteName("vpnSite1")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:network:VpnSite vpnSite1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}
* ```
*
*/
@ResourceType(type="azure-native:network:VpnSite")
public class VpnSite extends com.pulumi.resources.CustomResource {
/**
* The AddressSpace that contains an array of IP address ranges.
*
*/
@Export(name="addressSpace", refs={AddressSpaceResponse.class}, tree="[0]")
private Output* @Nullable */ AddressSpaceResponse> addressSpace;
/**
* @return The AddressSpace that contains an array of IP address ranges.
*
*/
public Output> addressSpace() {
return Codegen.optional(this.addressSpace);
}
/**
* The set of bgp properties.
*
*/
@Export(name="bgpProperties", refs={BgpSettingsResponse.class}, tree="[0]")
private Output* @Nullable */ BgpSettingsResponse> bgpProperties;
/**
* @return The set of bgp properties.
*
*/
public Output> bgpProperties() {
return Codegen.optional(this.bgpProperties);
}
/**
* The device properties.
*
*/
@Export(name="deviceProperties", refs={DevicePropertiesResponse.class}, tree="[0]")
private Output* @Nullable */ DevicePropertiesResponse> deviceProperties;
/**
* @return The device properties.
*
*/
public Output> deviceProperties() {
return Codegen.optional(this.deviceProperties);
}
/**
* 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 ip-address for the vpn-site.
*
*/
@Export(name="ipAddress", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> ipAddress;
/**
* @return The ip-address for the vpn-site.
*
*/
public Output> ipAddress() {
return Codegen.optional(this.ipAddress);
}
/**
* IsSecuritySite flag.
*
*/
@Export(name="isSecuritySite", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> isSecuritySite;
/**
* @return IsSecuritySite flag.
*
*/
public Output> isSecuritySite() {
return Codegen.optional(this.isSecuritySite);
}
/**
* Resource location.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Resource location.
*
*/
public Output location() {
return this.location;
}
/**
* Resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource name.
*
*/
public Output name() {
return this.name;
}
/**
* Office365 Policy.
*
*/
@Export(name="o365Policy", refs={O365PolicyPropertiesResponse.class}, tree="[0]")
private Output* @Nullable */ O365PolicyPropertiesResponse> o365Policy;
/**
* @return Office365 Policy.
*
*/
public Output> o365Policy() {
return Codegen.optional(this.o365Policy);
}
/**
* The provisioning state of the VPN site resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The provisioning state of the VPN site resource.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* The key for vpn-site that can be used for connections.
*
*/
@Export(name="siteKey", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> siteKey;
/**
* @return The key for vpn-site that can be used for connections.
*
*/
public Output> siteKey() {
return Codegen.optional(this.siteKey);
}
/**
* 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;
}
/**
* The VirtualWAN to which the vpnSite belongs.
*
*/
@Export(name="virtualWan", refs={SubResourceResponse.class}, tree="[0]")
private Output* @Nullable */ SubResourceResponse> virtualWan;
/**
* @return The VirtualWAN to which the vpnSite belongs.
*
*/
public Output> virtualWan() {
return Codegen.optional(this.virtualWan);
}
/**
* List of all vpn site links.
*
*/
@Export(name="vpnSiteLinks", refs={List.class,VpnSiteLinkResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> vpnSiteLinks;
/**
* @return List of all vpn site links.
*
*/
public Output>> vpnSiteLinks() {
return Codegen.optional(this.vpnSiteLinks);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public VpnSite(java.lang.String name) {
this(name, VpnSiteArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public VpnSite(java.lang.String name, VpnSiteArgs 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 VpnSite(java.lang.String name, VpnSiteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:VpnSite", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private VpnSite(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:VpnSite", name, null, makeResourceOptions(options, id), false);
}
private static VpnSiteArgs makeArgs(VpnSiteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? VpnSiteArgs.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/v20180401:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20180601:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20180701:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20180801:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20181001:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20181101:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20181201:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20190201:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20190401:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20190601:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20190701:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20190801:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20190901:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20191101:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20191201:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20200301:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20200401:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20200501:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20200601:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20200701:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20200801:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20201101:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20210201:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20210301:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20210501:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20210801:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20220101:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20220501:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20220701:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20220901:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20221101:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20230201:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20230401:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20230501:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20230601:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20230901:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20231101:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20240101:VpnSite").build()),
Output.of(Alias.builder().type("azure-native:network/v20240301:VpnSite").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 VpnSite get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new VpnSite(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy