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

com.pulumi.azurenative.network.Zone 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.ZoneArgs;
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.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Describes a DNS zone.
 * Azure REST API version: 2018-05-01. Prior API version in Azure Native 1.x: 2018-05-01.
 * 
 * Other available API versions: 2015-05-04-preview, 2016-04-01, 2023-07-01-preview.
 * 
 * ## Example Usage
 * ### Create zone
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.Zone;
 * import com.pulumi.azurenative.network.ZoneArgs;
 * 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 zone = new Zone("zone", ZoneArgs.builder()
 *             .location("Global")
 *             .resourceGroupName("rg1")
 *             .tags(Map.of("key1", "value1"))
 *             .zoneName("zone1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:network:Zone zone1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName} * ``` * */ @ResourceType(type="azure-native:network:Zone") public class Zone 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); } /** * Resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location. * */ public Output location() { return this.location; } /** * The maximum number of record sets that can be created in this 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 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 records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="maxNumberOfRecordsPerRecordSet", refs={Double.class}, tree="[0]") private Output maxNumberOfRecordsPerRecordSet; /** * @return The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ public Output maxNumberOfRecordsPerRecordSet() { return this.maxNumberOfRecordsPerRecordSet; } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ @Export(name="nameServers", refs={List.class,String.class}, tree="[0,1]") private Output> nameServers; /** * @return The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ public Output> nameServers() { return this.nameServers; } /** * The current number of record sets in this 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 DNS zone. This is a read-only property and any attempt to set this value will be ignored. * */ public Output numberOfRecordSets() { return this.numberOfRecordSets; } /** * A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private. * */ @Export(name="registrationVirtualNetworks", refs={List.class,SubResourceResponse.class}, tree="[0,1]") private Output> registrationVirtualNetworks; /** * @return A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private. * */ public Output>> registrationVirtualNetworks() { return Codegen.optional(this.registrationVirtualNetworks); } /** * A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private. * */ @Export(name="resolutionVirtualNetworks", refs={List.class,SubResourceResponse.class}, tree="[0,1]") private Output> resolutionVirtualNetworks; /** * @return A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private. * */ public Output>> resolutionVirtualNetworks() { return Codegen.optional(this.resolutionVirtualNetworks); } /** * 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); } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * The type of this DNS zone (Public or Private). * */ @Export(name="zoneType", refs={String.class}, tree="[0]") private Output zoneType; /** * @return The type of this DNS zone (Public or Private). * */ public Output> zoneType() { return Codegen.optional(this.zoneType); } /** * * @param name The _unique_ name of the resulting resource. */ public Zone(java.lang.String name) { this(name, ZoneArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Zone(java.lang.String name, ZoneArgs 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 Zone(java.lang.String name, ZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:Zone", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Zone(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:Zone", name, null, makeResourceOptions(options, id), false); } private static ZoneArgs makeArgs(ZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ZoneArgs.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/v20150504preview:Zone").build()), Output.of(Alias.builder().type("azure-native:network/v20160401:Zone").build()), Output.of(Alias.builder().type("azure-native:network/v20170901:Zone").build()), Output.of(Alias.builder().type("azure-native:network/v20171001:Zone").build()), Output.of(Alias.builder().type("azure-native:network/v20180301preview:Zone").build()), Output.of(Alias.builder().type("azure-native:network/v20180501:Zone").build()), Output.of(Alias.builder().type("azure-native:network/v20230701preview:Zone").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 Zone get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Zone(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy