1. Packages
  2. Alicloud Provider
  3. API Docs
  4. vpc
  5. Ipv4Gateway
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.vpc.Ipv4Gateway

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    Provides a Vpc Ipv4 Gateway resource.

    For information about Vpc Ipv4 Gateway and how to use it, see What is Ipv4 Gateway.

    NOTE: Available in v1.181.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-testacc-example";
    const _default = new alicloud.resourcemanager.ResourceGroup("default", {
        displayName: "tf-testAcc-rg665",
        resourceGroupName: name,
    });
    const modify = new alicloud.resourcemanager.ResourceGroup("modify", {
        displayName: "tf-testAcc-rg298",
        resourceGroupName: `${name}1`,
    });
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: `${name}2`,
        cidrBlock: "10.0.0.0/8",
    });
    const defaultIpv4Gateway = new alicloud.vpc.Ipv4Gateway("default", {
        ipv4GatewayName: name,
        ipv4GatewayDescription: "tf-testAcc-Ipv4Gateway",
        resourceGroupId: _default.id,
        vpcId: defaultNetwork.id,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-testacc-example"
    default = alicloud.resourcemanager.ResourceGroup("default",
        display_name="tf-testAcc-rg665",
        resource_group_name=name)
    modify = alicloud.resourcemanager.ResourceGroup("modify",
        display_name="tf-testAcc-rg298",
        resource_group_name=f"{name}1")
    default_network = alicloud.vpc.Network("default",
        vpc_name=f"{name}2",
        cidr_block="10.0.0.0/8")
    default_ipv4_gateway = alicloud.vpc.Ipv4Gateway("default",
        ipv4_gateway_name=name,
        ipv4_gateway_description="tf-testAcc-Ipv4Gateway",
        resource_group_id=default.id,
        vpc_id=default_network.id)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-testacc-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := resourcemanager.NewResourceGroup(ctx, "default", &resourcemanager.ResourceGroupArgs{
    			DisplayName:       pulumi.String("tf-testAcc-rg665"),
    			ResourceGroupName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = resourcemanager.NewResourceGroup(ctx, "modify", &resourcemanager.ResourceGroupArgs{
    			DisplayName:       pulumi.String("tf-testAcc-rg298"),
    			ResourceGroupName: pulumi.Sprintf("%v1", name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.Sprintf("%v2", name),
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewIpv4Gateway(ctx, "default", &vpc.Ipv4GatewayArgs{
    			Ipv4GatewayName:        pulumi.String(name),
    			Ipv4GatewayDescription: pulumi.String("tf-testAcc-Ipv4Gateway"),
    			ResourceGroupId:        _default.ID(),
    			VpcId:                  defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-testacc-example";
        var @default = new AliCloud.ResourceManager.ResourceGroup("default", new()
        {
            DisplayName = "tf-testAcc-rg665",
            ResourceGroupName = name,
        });
    
        var modify = new AliCloud.ResourceManager.ResourceGroup("modify", new()
        {
            DisplayName = "tf-testAcc-rg298",
            ResourceGroupName = $"{name}1",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = $"{name}2",
            CidrBlock = "10.0.0.0/8",
        });
    
        var defaultIpv4Gateway = new AliCloud.Vpc.Ipv4Gateway("default", new()
        {
            Ipv4GatewayName = name,
            Ipv4GatewayDescription = "tf-testAcc-Ipv4Gateway",
            ResourceGroupId = @default.Id,
            VpcId = defaultNetwork.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.ResourceGroup;
    import com.pulumi.alicloud.resourcemanager.ResourceGroupArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Ipv4Gateway;
    import com.pulumi.alicloud.vpc.Ipv4GatewayArgs;
    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 default_ = new ResourceGroup("default", ResourceGroupArgs.builder()
                .displayName("tf-testAcc-rg665")
                .resourceGroupName(name)
                .build());
    
            var modify = new ResourceGroup("modify", ResourceGroupArgs.builder()
                .displayName("tf-testAcc-rg298")
                .resourceGroupName(String.format("%s1", name))
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .vpcName(String.format("%s2", name))
                .cidrBlock("10.0.0.0/8")
                .build());
    
            var defaultIpv4Gateway = new Ipv4Gateway("defaultIpv4Gateway", Ipv4GatewayArgs.builder()
                .ipv4GatewayName(name)
                .ipv4GatewayDescription("tf-testAcc-Ipv4Gateway")
                .resourceGroupId(default_.id())
                .vpcId(defaultNetwork.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-testacc-example
    resources:
      default:
        type: alicloud:resourcemanager:ResourceGroup
        properties:
          displayName: tf-testAcc-rg665
          resourceGroupName: ${name}
      modify:
        type: alicloud:resourcemanager:ResourceGroup
        properties:
          displayName: tf-testAcc-rg298
          resourceGroupName: ${name}1
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: ${name}2
          cidrBlock: 10.0.0.0/8
      defaultIpv4Gateway:
        type: alicloud:vpc:Ipv4Gateway
        name: default
        properties:
          ipv4GatewayName: ${name}
          ipv4GatewayDescription: tf-testAcc-Ipv4Gateway
          resourceGroupId: ${default.id}
          vpcId: ${defaultNetwork.id}
    

    Create Ipv4Gateway Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Ipv4Gateway(name: string, args: Ipv4GatewayArgs, opts?: CustomResourceOptions);
    @overload
    def Ipv4Gateway(resource_name: str,
                    args: Ipv4GatewayArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ipv4Gateway(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    vpc_id: Optional[str] = None,
                    dry_run: Optional[bool] = None,
                    enabled: Optional[bool] = None,
                    ipv4_gateway_description: Optional[str] = None,
                    ipv4_gateway_name: Optional[str] = None,
                    resource_group_id: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None)
    func NewIpv4Gateway(ctx *Context, name string, args Ipv4GatewayArgs, opts ...ResourceOption) (*Ipv4Gateway, error)
    public Ipv4Gateway(string name, Ipv4GatewayArgs args, CustomResourceOptions? opts = null)
    public Ipv4Gateway(String name, Ipv4GatewayArgs args)
    public Ipv4Gateway(String name, Ipv4GatewayArgs args, CustomResourceOptions options)
    
    type: alicloud:vpc:Ipv4Gateway
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args Ipv4GatewayArgs
    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 Ipv4GatewayArgs
    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 Ipv4GatewayArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ipv4GatewayArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ipv4GatewayArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ipv4GatewayResource = new AliCloud.Vpc.Ipv4Gateway("ipv4GatewayResource", new()
    {
        VpcId = "string",
        DryRun = false,
        Enabled = false,
        Ipv4GatewayDescription = "string",
        Ipv4GatewayName = "string",
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := vpc.NewIpv4Gateway(ctx, "ipv4GatewayResource", &vpc.Ipv4GatewayArgs{
    	VpcId:                  pulumi.String("string"),
    	DryRun:                 pulumi.Bool(false),
    	Enabled:                pulumi.Bool(false),
    	Ipv4GatewayDescription: pulumi.String("string"),
    	Ipv4GatewayName:        pulumi.String("string"),
    	ResourceGroupId:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var ipv4GatewayResource = new Ipv4Gateway("ipv4GatewayResource", Ipv4GatewayArgs.builder()
        .vpcId("string")
        .dryRun(false)
        .enabled(false)
        .ipv4GatewayDescription("string")
        .ipv4GatewayName("string")
        .resourceGroupId("string")
        .tags(Map.of("string", "string"))
        .build());
    
    ipv4_gateway_resource = alicloud.vpc.Ipv4Gateway("ipv4GatewayResource",
        vpc_id="string",
        dry_run=False,
        enabled=False,
        ipv4_gateway_description="string",
        ipv4_gateway_name="string",
        resource_group_id="string",
        tags={
            "string": "string",
        })
    
    const ipv4GatewayResource = new alicloud.vpc.Ipv4Gateway("ipv4GatewayResource", {
        vpcId: "string",
        dryRun: false,
        enabled: false,
        ipv4GatewayDescription: "string",
        ipv4GatewayName: "string",
        resourceGroupId: "string",
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:vpc:Ipv4Gateway
    properties:
        dryRun: false
        enabled: false
        ipv4GatewayDescription: string
        ipv4GatewayName: string
        resourceGroupId: string
        tags:
            string: string
        vpcId: string
    

    Ipv4Gateway 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 Ipv4Gateway resource accepts the following input properties:

    VpcId string
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    DryRun bool
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    Enabled bool
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    Ipv4GatewayDescription string
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    Ipv4GatewayName string
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    ResourceGroupId string
    The ID of the resource group to which the instance belongs.
    Tags Dictionary<string, string>
    The tags of the current resource.
    VpcId string
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    DryRun bool
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    Enabled bool
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    Ipv4GatewayDescription string
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    Ipv4GatewayName string
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    ResourceGroupId string
    The ID of the resource group to which the instance belongs.
    Tags map[string]string
    The tags of the current resource.
    vpcId String
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    dryRun Boolean
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled Boolean
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4GatewayDescription String
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4GatewayName String
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    resourceGroupId String
    The ID of the resource group to which the instance belongs.
    tags Map<String,String>
    The tags of the current resource.
    vpcId string
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    dryRun boolean
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled boolean
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4GatewayDescription string
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4GatewayName string
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    resourceGroupId string
    The ID of the resource group to which the instance belongs.
    tags {[key: string]: string}
    The tags of the current resource.
    vpc_id str
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    dry_run bool
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled bool
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4_gateway_description str
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4_gateway_name str
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    resource_group_id str
    The ID of the resource group to which the instance belongs.
    tags Mapping[str, str]
    The tags of the current resource.
    vpcId String
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    dryRun Boolean
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled Boolean
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4GatewayDescription String
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4GatewayName String
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    resourceGroupId String
    The ID of the resource group to which the instance belongs.
    tags Map<String>
    The tags of the current resource.

    Outputs

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

    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4GatewayId string
    Resource primary key field.
    Ipv4GatewayRouteTableId string
    ID of the route table associated with IPv4 Gateway.
    Status string
    The status of the resource.
    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4GatewayId string
    Resource primary key field.
    Ipv4GatewayRouteTableId string
    ID of the route table associated with IPv4 Gateway.
    Status string
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4GatewayId String
    Resource primary key field.
    ipv4GatewayRouteTableId String
    ID of the route table associated with IPv4 Gateway.
    status String
    The status of the resource.
    createTime string
    The creation time of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    ipv4GatewayId string
    Resource primary key field.
    ipv4GatewayRouteTableId string
    ID of the route table associated with IPv4 Gateway.
    status string
    The status of the resource.
    create_time str
    The creation time of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    ipv4_gateway_id str
    Resource primary key field.
    ipv4_gateway_route_table_id str
    ID of the route table associated with IPv4 Gateway.
    status str
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4GatewayId String
    Resource primary key field.
    ipv4GatewayRouteTableId String
    ID of the route table associated with IPv4 Gateway.
    status String
    The status of the resource.

    Look up Existing Ipv4Gateway Resource

    Get an existing Ipv4Gateway 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?: Ipv4GatewayState, opts?: CustomResourceOptions): Ipv4Gateway
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            dry_run: Optional[bool] = None,
            enabled: Optional[bool] = None,
            ipv4_gateway_description: Optional[str] = None,
            ipv4_gateway_id: Optional[str] = None,
            ipv4_gateway_name: Optional[str] = None,
            ipv4_gateway_route_table_id: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            vpc_id: Optional[str] = None) -> Ipv4Gateway
    func GetIpv4Gateway(ctx *Context, name string, id IDInput, state *Ipv4GatewayState, opts ...ResourceOption) (*Ipv4Gateway, error)
    public static Ipv4Gateway Get(string name, Input<string> id, Ipv4GatewayState? state, CustomResourceOptions? opts = null)
    public static Ipv4Gateway get(String name, Output<String> id, Ipv4GatewayState 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:
    CreateTime string
    The creation time of the resource.
    DryRun bool
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    Enabled bool
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    Ipv4GatewayDescription string
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    Ipv4GatewayId string
    Resource primary key field.
    Ipv4GatewayName string
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    Ipv4GatewayRouteTableId string
    ID of the route table associated with IPv4 Gateway.
    ResourceGroupId string
    The ID of the resource group to which the instance belongs.
    Status string
    The status of the resource.
    Tags Dictionary<string, string>
    The tags of the current resource.
    VpcId string
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    CreateTime string
    The creation time of the resource.
    DryRun bool
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    Enabled bool
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    Ipv4GatewayDescription string
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    Ipv4GatewayId string
    Resource primary key field.
    Ipv4GatewayName string
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    Ipv4GatewayRouteTableId string
    ID of the route table associated with IPv4 Gateway.
    ResourceGroupId string
    The ID of the resource group to which the instance belongs.
    Status string
    The status of the resource.
    Tags map[string]string
    The tags of the current resource.
    VpcId string
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    createTime String
    The creation time of the resource.
    dryRun Boolean
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled Boolean
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4GatewayDescription String
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4GatewayId String
    Resource primary key field.
    ipv4GatewayName String
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    ipv4GatewayRouteTableId String
    ID of the route table associated with IPv4 Gateway.
    resourceGroupId String
    The ID of the resource group to which the instance belongs.
    status String
    The status of the resource.
    tags Map<String,String>
    The tags of the current resource.
    vpcId String
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    createTime string
    The creation time of the resource.
    dryRun boolean
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled boolean
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4GatewayDescription string
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4GatewayId string
    Resource primary key field.
    ipv4GatewayName string
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    ipv4GatewayRouteTableId string
    ID of the route table associated with IPv4 Gateway.
    resourceGroupId string
    The ID of the resource group to which the instance belongs.
    status string
    The status of the resource.
    tags {[key: string]: string}
    The tags of the current resource.
    vpcId string
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    create_time str
    The creation time of the resource.
    dry_run bool
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled bool
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4_gateway_description str
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4_gateway_id str
    Resource primary key field.
    ipv4_gateway_name str
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    ipv4_gateway_route_table_id str
    ID of the route table associated with IPv4 Gateway.
    resource_group_id str
    The ID of the resource group to which the instance belongs.
    status str
    The status of the resource.
    tags Mapping[str, str]
    The tags of the current resource.
    vpc_id str
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.
    createTime String
    The creation time of the resource.
    dryRun Boolean
    Whether to PreCheck only this request. Value:-true: The check request is sent without creating an IPv4 Gateway. Check items include whether required parameters, request format, and business restrictions are filled in. If the check does not pass, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns an HTTP 2xx status code and directly creates an IPv4 Gateway.
    enabled Boolean
    Whether the IPv4 gateway is active or not. Valid values are true and false.
    ipv4GatewayDescription String
    The description of the IPv4 gateway. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
    ipv4GatewayId String
    Resource primary key field.
    ipv4GatewayName String
    The name of the IPv4 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
    ipv4GatewayRouteTableId String
    ID of the route table associated with IPv4 Gateway.
    resourceGroupId String
    The ID of the resource group to which the instance belongs.
    status String
    The status of the resource.
    tags Map<String>
    The tags of the current resource.
    vpcId String
    The ID of the virtual private cloud (VPC) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.

    Import

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

    $ pulumi import alicloud:vpc/ipv4Gateway:Ipv4Gateway example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi