GatewayEndpoint

class GatewayEndpoint : KotlinCustomResource

Provides a VPC Gateway Endpoint resource. VPC gateway endpoint. For information about VPC Gateway Endpoint and how to use it, see What is Gateway Endpoint.

NOTE: Available since v1.208.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.GatewayEndpoint;
import com.pulumi.alicloud.vpc.GatewayEndpointArgs;
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("terraform-example");
final var domain = config.get("domain").orElse("com.aliyun.cn-hangzhou.oss");
var defaultVpc = new Network("defaultVpc", NetworkArgs.builder()
.description("tf-example")
.build());
var defaultRg = new ResourceGroup("defaultRg", ResourceGroupArgs.builder()
.displayName("tf-example-497")
.resourceGroupName(name)
.build());
var default_ = new GatewayEndpoint("default", GatewayEndpointArgs.builder()
.gatewayEndpointDescrption("test-gateway-endpoint")
.gatewayEndpointName(name)
.vpcId(defaultVpc.id())
.resourceGroupId(defaultRg.id())
.serviceName(domain)
.policyDocument("{ \"Version\" : \"1\", \"Statement\" : [ { \"Effect\" : \"Allow\", \"Resource\" : [ \"*\" ], \"Action\" : [ \"*\" ], \"Principal\" : [ \"*\" ] } ] }")
.build());
}
}

Import

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

$ pulumi import alicloud:vpc/gatewayEndpoint:GatewayEndpoint example <id>

Properties

Link copied to clipboard
val createTime: Output<String>

The creation time of the gateway endpoint.

Link copied to clipboard

The description of the gateway endpoint.

Link copied to clipboard

The name of the gateway endpoint.

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

Access control policies for cloud services. This parameter is required when the cloud service is oss. For details about the syntax and structure of access policies, see syntax and structure of permission Policies.

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

The name of endpoint service.

Link copied to clipboard
val status: Output<String>

The status of VPC gateway endpoint.

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

The tags of the resource.

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

The ID of the VPC.