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

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

There is a newer version: 2.82.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.PrivateZoneArgs;
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.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Describes a Private DNS zone.
 * Azure REST API version: 2020-06-01. Prior API version in Azure Native 1.x: 2020-06-01.
 * 
 * Other available API versions: 2024-06-01.
 * 
 * ## Example Usage
 * ### PUT Private DNS Zone
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.PrivateZone;
 * import com.pulumi.azurenative.network.PrivateZoneArgs;
 * 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 privateZone = new PrivateZone("privateZone", PrivateZoneArgs.builder()
 *             .location("Global")
 *             .privateZoneName("privatezone1.com")
 *             .resourceGroupName("resourceGroup1")
 *             .tags(Map.of("key1", "value1"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:network:PrivateZone privatezone1.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName} * ``` * */ @ResourceType(type="azure-native:network:PrivateZone") public class PrivateZone extends com.pulumi.resources.CustomResource { /** * The ETag of the zone. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return The ETag of the zone. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * Private zone internal Id * */ @Export(name="internalId", refs={String.class}, tree="[0]") private Output internalId; /** * @return Private zone internal Id * */ public Output internalId() { return this.internalId; } /** * The Azure Region where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The Azure Region where the resource lives * */ public Output> location() { return Codegen.optional(this.location); } /** * The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="maxNumberOfRecordSets", refs={Double.class}, tree="[0]") private Output maxNumberOfRecordSets; /** * @return The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ public Output maxNumberOfRecordSets() { return this.maxNumberOfRecordSets; } /** * The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="maxNumberOfVirtualNetworkLinks", refs={Double.class}, tree="[0]") private Output maxNumberOfVirtualNetworkLinks; /** * @return The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ public Output maxNumberOfVirtualNetworkLinks() { return this.maxNumberOfVirtualNetworkLinks; } /** * The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="maxNumberOfVirtualNetworkLinksWithRegistration", refs={Double.class}, tree="[0]") private Output maxNumberOfVirtualNetworkLinksWithRegistration; /** * @return The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored. * */ public Output maxNumberOfVirtualNetworkLinksWithRegistration() { return this.maxNumberOfVirtualNetworkLinksWithRegistration; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="numberOfRecordSets", refs={Double.class}, tree="[0]") private Output numberOfRecordSets; /** * @return The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ public Output numberOfRecordSets() { return this.numberOfRecordSets; } /** * The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="numberOfVirtualNetworkLinks", refs={Double.class}, tree="[0]") private Output numberOfVirtualNetworkLinks; /** * @return The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ public Output numberOfVirtualNetworkLinks() { return this.numberOfVirtualNetworkLinks; } /** * The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="numberOfVirtualNetworkLinksWithRegistration", refs={Double.class}, tree="[0]") private Output numberOfVirtualNetworkLinksWithRegistration; /** * @return The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored. * */ public Output numberOfVirtualNetworkLinksWithRegistration() { return this.numberOfVirtualNetworkLinksWithRegistration; } /** * The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored. * */ public Output provisioningState() { return this.provisioningState; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. Example - 'Microsoft.Network/privateDnsZones'. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. Example - 'Microsoft.Network/privateDnsZones'. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public PrivateZone(java.lang.String name) { this(name, PrivateZoneArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public PrivateZone(java.lang.String name, PrivateZoneArgs 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 PrivateZone(java.lang.String name, PrivateZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:PrivateZone", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private PrivateZone(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:PrivateZone", name, null, makeResourceOptions(options, id), false); } private static PrivateZoneArgs makeArgs(PrivateZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? PrivateZoneArgs.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/v20180901:PrivateZone").build()), Output.of(Alias.builder().type("azure-native:network/v20200101:PrivateZone").build()), Output.of(Alias.builder().type("azure-native:network/v20200601:PrivateZone").build()), Output.of(Alias.builder().type("azure-native:network/v20240601:PrivateZone").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 PrivateZone get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new PrivateZone(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy