Package com.pulumi.azurenative.network
Class PrivateZone
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.network.PrivateZone
-
public class PrivateZone extends com.pulumi.resources.CustomResource
Describes a Private DNS zone. Azure REST API version: 2020-06-01. Prior API version in Azure Native 1.x: 2020-06-01. ## Example Usage ### PUT Private DNS Zone ```java 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} ```
-
-
Constructor Summary
Constructors Constructor Description PrivateZone(java.lang.String name)
PrivateZone(java.lang.String name, PrivateZoneArgs args)
PrivateZone(java.lang.String name, PrivateZoneArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.lang.String>>
etag()
static PrivateZone
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
internalId()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
location()
com.pulumi.core.Output<java.lang.Double>
maxNumberOfRecordSets()
com.pulumi.core.Output<java.lang.Double>
maxNumberOfVirtualNetworkLinks()
com.pulumi.core.Output<java.lang.Double>
maxNumberOfVirtualNetworkLinksWithRegistration()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.Double>
numberOfRecordSets()
com.pulumi.core.Output<java.lang.Double>
numberOfVirtualNetworkLinks()
com.pulumi.core.Output<java.lang.Double>
numberOfVirtualNetworkLinksWithRegistration()
com.pulumi.core.Output<java.lang.String>
provisioningState()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
PrivateZone
public PrivateZone(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
PrivateZone
public PrivateZone(java.lang.String name, PrivateZoneArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
PrivateZone
public PrivateZone(java.lang.String name, PrivateZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
etag
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> etag()
- Returns:
- The ETag of the zone.
-
internalId
public com.pulumi.core.Output<java.lang.String> internalId()
- Returns:
- Private zone internal Id
-
location
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> location()
- Returns:
- The Azure Region where the resource lives
-
maxNumberOfRecordSets
public com.pulumi.core.Output<java.lang.Double> maxNumberOfRecordSets()
- Returns:
- 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.
-
maxNumberOfVirtualNetworkLinks
public com.pulumi.core.Output<java.lang.Double> maxNumberOfVirtualNetworkLinks()
- Returns:
- 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.
-
maxNumberOfVirtualNetworkLinksWithRegistration
public com.pulumi.core.Output<java.lang.Double> maxNumberOfVirtualNetworkLinksWithRegistration()
- Returns:
- 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.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the resource
-
numberOfRecordSets
public com.pulumi.core.Output<java.lang.Double> numberOfRecordSets()
- Returns:
- 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.
-
numberOfVirtualNetworkLinks
public com.pulumi.core.Output<java.lang.Double> numberOfVirtualNetworkLinks()
- Returns:
- 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.
-
numberOfVirtualNetworkLinksWithRegistration
public com.pulumi.core.Output<java.lang.Double> numberOfVirtualNetworkLinksWithRegistration()
- Returns:
- 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.
-
provisioningState
public com.pulumi.core.Output<java.lang.String> provisioningState()
- Returns:
- The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Resource tags.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
-
get
public static PrivateZone get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-