com.pulumi.alicloud.pvtz.Zone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.pvtz;
import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.pvtz.ZoneArgs;
import com.pulumi.alicloud.pvtz.inputs.ZoneState;
import com.pulumi.alicloud.pvtz.outputs.ZoneUserInfo;
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.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.pvtz.Zone;
* import com.pulumi.alicloud.pvtz.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 foo = new Zone("foo", ZoneArgs.builder()
* .zoneName("foo.example.com")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Private Zone can be imported using the id, e.g.
*
* ```sh
* $ pulumi import alicloud:pvtz/zone:Zone example abc123456
* ```
*
*/
@ResourceType(type="alicloud:pvtz/zone:Zone")
public class Zone extends com.pulumi.resources.CustomResource {
/**
* Whether the Private Zone is ptr.
*
*/
@Export(name="isPtr", refs={Boolean.class}, tree="[0]")
private Output isPtr;
/**
* @return Whether the Private Zone is ptr.
*
*/
public Output isPtr() {
return this.isPtr;
}
/**
* The language. Valid values: "zh", "en", "jp".
*
*/
@Export(name="lang", refs={String.class}, tree="[0]")
private Output lang;
/**
* @return The language. Valid values: "zh", "en", "jp".
*
*/
public Output> lang() {
return Codegen.optional(this.lang);
}
/**
* The name of the Private Zone. The `name` has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
*
* @deprecated
* Field 'name' has been deprecated from version 1.107.0. Use 'zone_name' instead.
*
*/
@Deprecated /* Field 'name' has been deprecated from version 1.107.0. Use 'zone_name' instead. */
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the Private Zone. The `name` has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
*
*/
public Output name() {
return this.name;
}
/**
* The recursive DNS proxy. Valid values:
* - ZONE: indicates that the recursive DNS proxy is disabled.
* - RECORD: indicates that the recursive DNS proxy is enabled.
* Default to "ZONE".
*
*/
@Export(name="proxyPattern", refs={String.class}, tree="[0]")
private Output proxyPattern;
/**
* @return The recursive DNS proxy. Valid values:
* - ZONE: indicates that the recursive DNS proxy is disabled.
* - RECORD: indicates that the recursive DNS proxy is enabled.
* Default to "ZONE".
*
*/
public Output> proxyPattern() {
return Codegen.optional(this.proxyPattern);
}
/**
* The count of the Private Zone Record.
*
*/
@Export(name="recordCount", refs={Integer.class}, tree="[0]")
private Output recordCount;
/**
* @return The count of the Private Zone Record.
*
*/
public Output recordCount() {
return this.recordCount;
}
/**
* The remark of the Private Zone.
*
*/
@Export(name="remark", refs={String.class}, tree="[0]")
private Output remark;
/**
* @return The remark of the Private Zone.
*
*/
public Output> remark() {
return Codegen.optional(this.remark);
}
/**
* The Id of resource group which the Private Zone belongs.
*
*/
@Export(name="resourceGroupId", refs={String.class}, tree="[0]")
private Output resourceGroupId;
/**
* @return The Id of resource group which the Private Zone belongs.
*
*/
public Output resourceGroupId() {
return this.resourceGroupId;
}
/**
* The status of the host synchronization task. Valid values: `ON`,`OFF`. **NOTE:** You can update the `sync_status` to enable/disable the host synchronization task.
*
*/
@Export(name="syncStatus", refs={String.class}, tree="[0]")
private Output syncStatus;
/**
* @return The status of the host synchronization task. Valid values: `ON`,`OFF`. **NOTE:** You can update the `sync_status` to enable/disable the host synchronization task.
*
*/
public Output> syncStatus() {
return Codegen.optional(this.syncStatus);
}
/**
* The tags of the Private Zone.
*
*/
@Export(name="tags", refs={Map.class,String.class,Object.class}, tree="[0,1,2]")
private Output> tags;
/**
* @return The tags of the Private Zone.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The IP address of the client.
*
*/
@Export(name="userClientIp", refs={String.class}, tree="[0]")
private Output userClientIp;
/**
* @return The IP address of the client.
*
*/
public Output> userClientIp() {
return Codegen.optional(this.userClientIp);
}
/**
* The user information of the host synchronization task. See `user_info` below.
*
*/
@Export(name="userInfos", refs={List.class,ZoneUserInfo.class}, tree="[0,1]")
private Output> userInfos;
/**
* @return The user information of the host synchronization task. See `user_info` below.
*
*/
public Output> userInfos() {
return this.userInfos;
}
/**
* The zone_name of the Private Zone. The `zone_name` is required when the value of the `name` is Empty.
*
*/
@Export(name="zoneName", refs={String.class}, tree="[0]")
private Output zoneName;
/**
* @return The zone_name of the Private Zone. The `zone_name` is required when the value of the `name` is Empty.
*
*/
public Output zoneName() {
return this.zoneName;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Zone(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(String name, @Nullable 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(String name, @Nullable ZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:pvtz/zone:Zone", name, args == null ? ZoneArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
}
private Zone(String name, Output id, @Nullable ZoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:pvtz/zone:Zone", name, state, makeResourceOptions(options, id));
}
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 Zone get(String name, Output id, @Nullable ZoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Zone(name, id, state, options);
}
}