Ipv6Gateway

class Ipv6Gateway : KotlinCustomResource

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>

Properties

Link copied to clipboard
val businessStatus: Output<String>

The status of the IPv6 gateway.

Link copied to clipboard
val createTime: Output<String>

The creation time of the resource.

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

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 expiredTime: Output<String>

The expiration time of IPv6 gateway.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The charge type of IPv6 gateway.

Link copied to clipboard
val ipv6GatewayId: Output<String>

Resource primary key attribute field.

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

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

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

Link copied to clipboard
val spec: Output<String>

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

Link copied to clipboard
val status: Output<String>

The status of the resource. Valid values: Available, Pending and Deleting.

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

The tags for the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

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