GatewayEndpointArgs

data class GatewayEndpointArgs(val gatewayEndpointDescrption: Output<String>? = null, val gatewayEndpointName: Output<String>? = null, val policyDocument: Output<String>? = null, val resourceGroupId: Output<String>? = null, val serviceName: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<GatewayEndpointArgs>

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>

Constructors

Link copied to clipboard
fun GatewayEndpointArgs(gatewayEndpointDescrption: Output<String>? = null, gatewayEndpointName: Output<String>? = null, policyDocument: Output<String>? = null, resourceGroupId: Output<String>? = null, serviceName: Output<String>? = null, tags: Output<Map<String, Any>>? = null, vpcId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GatewayEndpointArgs

Properties

Link copied to clipboard
val gatewayEndpointDescrption: Output<String>? = null

The description of the gateway endpoint.

Link copied to clipboard
val gatewayEndpointName: Output<String>? = null

The name of the gateway endpoint.

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

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 resourceGroupId: Output<String>? = null

The ID of the resource group to which the instance belongs.

Link copied to clipboard
val serviceName: Output<String>? = null

The name of endpoint service.

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

The tags of the resource.

Link copied to clipboard
val vpcId: Output<String>? = null

The ID of the VPC.