Ipv4Gateway

class Ipv4Gateway : KotlinCustomResource

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.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 defaultResourceGroup = new ResourceGroup("defaultResourceGroup", 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(defaultResourceGroup.id())
.vpcId(defaultNetwork.id())
.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 createTime: Output<String>

The creation time of the resource.

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

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

Resource primary key field.

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

ID of the route table associated with IPv4 Gateway.

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

The status of the resource.

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

The tags of the current 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.