Ipv4Gateway

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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
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 default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NoDeleting")
.build());
var example = new Ipv4Gateway("example", Ipv4GatewayArgs.builder()
.ipv4GatewayName("example_value")
.vpcId(default_.ids()[0])
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val dryRun: Output<Boolean>?

The dry run.

Link copied to clipboard
val enabled: Output<Boolean>?

Whether the IPv4 gateway is active or not. Valid values are true and false.

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

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

Link copied to clipboard
val ipv4GatewayName: Output<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.

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

The status of 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) where you want to create the IPv4 gateway. You can create only one IPv4 gateway in a VPC.