Ipv6GatewayArgs

data class Ipv6GatewayArgs(val description: Output<String>? = null, val ipv6GatewayName: Output<String>? = null, val resourceGroupId: Output<String>? = null, val spec: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<Ipv6GatewayArgs>

Provides a Vpc Ipv6 Gateway resource. Gateway Based on Internet Protocol Version 6. For information about Vpc Ipv6 Gateway and how to use it, see What is Ipv6 Gateway.

NOTE: Available in v1.142.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.resourcemanager.ResourceGroup;
import com.pulumi.alicloud.resourcemanager.ResourceGroupArgs;
import com.pulumi.alicloud.vpc.Ipv6Gateway;
import com.pulumi.alicloud.vpc.Ipv6GatewayArgs;
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-testacc-example");
var defaultVpc = new Network("defaultVpc", NetworkArgs.builder()
.description("tf-testacc")
.enableIpv6(true)
.build());
var defaultRg = new ResourceGroup("defaultRg", ResourceGroupArgs.builder()
.displayName("tf-testacc-ipv6gateway503")
.resourceGroupName(String.format("%s1", name))
.build());
var changeRg = new ResourceGroup("changeRg", ResourceGroupArgs.builder()
.displayName("tf-testacc-ipv6gateway311")
.resourceGroupName(String.format("%s2", name))
.build());
var default_ = new Ipv6Gateway("default", Ipv6GatewayArgs.builder()
.description("test")
.ipv6GatewayName(name)
.vpcId(defaultVpc.id())
.resourceGroupId(defaultRg.id())
.build());
}
}

Import

Vpc Ipv6 Gateway can be imported using the id, e.g.

$ pulumi import alicloud:vpc/ipv6Gateway:Ipv6Gateway example <id>

Constructors

Link copied to clipboard
fun Ipv6GatewayArgs(description: Output<String>? = null, ipv6GatewayName: Output<String>? = null, resourceGroupId: Output<String>? = null, spec: Output<String>? = null, tags: Output<Map<String, Any>>? = null, vpcId: Output<String>? = null)

Functions

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

Properties

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

The description of the IPv6 gateway. The description must be 2 to 256 characters in length. It cannot start with http:// or https://.

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

The name of the IPv6 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://.

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

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

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

IPv6 gateways do not distinguish between specifications. This parameter is no longer used.

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

The tags for the resource.

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

The ID of the virtual private cloud (VPC) for which you want to create the IPv6 gateway.