HAVipArgs

data class HAVipArgs(val description: Output<String>? = null, val haVipName: Output<String>? = null, val havipName: Output<String>? = null, val ipAddress: Output<String>? = null, val resourceGroupId: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val vswitchId: Output<String>? = null) : ConvertibleToJava<HAVipArgs>

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.vpc.HAVip;
import com.pulumi.alicloud.vpc.HAVipArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.0.0/24")
.vpcId(exampleNetwork.id())
.zoneId(default_.zones()[0].id())
.build());
var exampleHAVip = new HAVip("exampleHAVip", HAVipArgs.builder()
.vswitchId(exampleSwitch.id())
.description(name)
.build());
}
}

Import

The havip can be imported using the id, e.g.

$ pulumi import alicloud:vpc/hAVip:HAVip foo havip-abc123456

Constructors

Link copied to clipboard
fun HAVipArgs(description: Output<String>? = null, haVipName: Output<String>? = null, havipName: Output<String>? = null, ipAddress: Output<String>? = null, resourceGroupId: Output<String>? = null, tags: Output<Map<String, Any>>? = null, vswitchId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): HAVipArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

The description of the HaVip instance.

Link copied to clipboard
val haVipName: Output<String>? = null

The name of the HAVIP.

Link copied to clipboard
val havipName: Output<String>? = null

The name of the HaVip instance.

Link copied to clipboard
val ipAddress: Output<String>? = null

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

Link copied to clipboard
val resourceGroupId: Output<String>? = null

The ID of the resource group to which the HAVIP belongs.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

The list of tags.

Link copied to clipboard
val vswitchId: Output<String>? = null

The vswitch_id of the HaVip, the field can't be changed.