alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.Ipv6Gateway

Provides a VPC Ipv6 Gateway resource.

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

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = "example_value",
        EnableIpv6 = true,
    });

    var example = new AliCloud.Vpc.Ipv6Gateway("example", new()
    {
        Ipv6GatewayName = "example_value",
        VpcId = @default.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:    pulumi.String("example_value"),
			EnableIpv6: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = vpc.NewIpv6Gateway(ctx, "example", &vpc.Ipv6GatewayArgs{
			Ipv6GatewayName: pulumi.String("example_value"),
			VpcId:           _default.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.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) {
        var default_ = new Network("default", NetworkArgs.builder()        
            .vpcName("example_value")
            .enableIpv6("true")
            .build());

        var example = new Ipv6Gateway("example", Ipv6GatewayArgs.builder()        
            .ipv6GatewayName("example_value")
            .vpcId(default_.id())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.vpc.Network("default",
    vpc_name="example_value",
    enable_ipv6=True)
example = alicloud.vpc.Ipv6Gateway("example",
    ipv6_gateway_name="example_value",
    vpc_id=default.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.vpc.Network("default", {
    vpcName: "example_value",
    enableIpv6: true,
});
const example = new alicloud.vpc.Ipv6Gateway("example", {
    ipv6GatewayName: "example_value",
    vpcId: _default.id,
});
resources:
  default:
    type: alicloud:vpc:Network
    properties:
      vpcName: example_value
      enableIpv6: 'true'
  example:
    type: alicloud:vpc:Ipv6Gateway
    properties:
      ipv6GatewayName: example_value
      vpcId: ${default.id}

Create Ipv6Gateway Resource

new Ipv6Gateway(name: string, args: Ipv6GatewayArgs, opts?: CustomResourceOptions);
@overload
def Ipv6Gateway(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                description: Optional[str] = None,
                ipv6_gateway_name: Optional[str] = None,
                spec: Optional[str] = None,
                vpc_id: Optional[str] = None)
@overload
def Ipv6Gateway(resource_name: str,
                args: Ipv6GatewayArgs,
                opts: Optional[ResourceOptions] = None)
func NewIpv6Gateway(ctx *Context, name string, args Ipv6GatewayArgs, opts ...ResourceOption) (*Ipv6Gateway, error)
public Ipv6Gateway(string name, Ipv6GatewayArgs args, CustomResourceOptions? opts = null)
public Ipv6Gateway(String name, Ipv6GatewayArgs args)
public Ipv6Gateway(String name, Ipv6GatewayArgs args, CustomResourceOptions options)
type: alicloud:vpc:Ipv6Gateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args Ipv6GatewayArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args Ipv6GatewayArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args Ipv6GatewayArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args Ipv6GatewayArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args Ipv6GatewayArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Ipv6Gateway Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Ipv6Gateway resource accepts the following input properties:

VpcId string

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

Description string

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

Ipv6GatewayName 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://.

Spec string

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

VpcId string

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

Description string

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

Ipv6GatewayName 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://.

Spec string

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

vpcId String

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

description String

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

ipv6GatewayName 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://.

spec String

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

vpcId string

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

description string

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

ipv6GatewayName 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://.

spec string

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

vpc_id str

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

description str

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

ipv6_gateway_name str

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://.

spec str

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

vpcId String

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

description String

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

ipv6GatewayName 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://.

spec String

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

Outputs

All input properties are implicitly available as output properties. Additionally, the Ipv6Gateway resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

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

Id string

The provider-assigned unique ID for this managed resource.

Status string

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

id String

The provider-assigned unique ID for this managed resource.

status String

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

id string

The provider-assigned unique ID for this managed resource.

status string

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

id str

The provider-assigned unique ID for this managed resource.

status str

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

id String

The provider-assigned unique ID for this managed resource.

status String

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

Look up Existing Ipv6Gateway Resource

Get an existing Ipv6Gateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: Ipv6GatewayState, opts?: CustomResourceOptions): Ipv6Gateway
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        ipv6_gateway_name: Optional[str] = None,
        spec: Optional[str] = None,
        status: Optional[str] = None,
        vpc_id: Optional[str] = None) -> Ipv6Gateway
func GetIpv6Gateway(ctx *Context, name string, id IDInput, state *Ipv6GatewayState, opts ...ResourceOption) (*Ipv6Gateway, error)
public static Ipv6Gateway Get(string name, Input<string> id, Ipv6GatewayState? state, CustomResourceOptions? opts = null)
public static Ipv6Gateway get(String name, Output<String> id, Ipv6GatewayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string

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

Ipv6GatewayName 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://.

Spec string

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

Status string

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

VpcId string

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

Description string

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

Ipv6GatewayName 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://.

Spec string

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

Status string

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

VpcId string

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

description String

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

ipv6GatewayName 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://.

spec String

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

status String

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

vpcId String

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

description string

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

ipv6GatewayName 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://.

spec string

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

status string

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

vpcId string

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

description str

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

ipv6_gateway_name str

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://.

spec str

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

status str

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

vpc_id str

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

description String

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

ipv6GatewayName 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://.

spec String

The edition of the IPv6 gateway. Valid values: Large, Medium and Small. Small (default): Free Edition. Medium: Enterprise Edition . Large: Enhanced Enterprise Edition. The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

status String

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

vpcId String

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

Import

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

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.