flexibleengine.VpcepEndpoint
Explore with Pulumi AI
Provides a resource to manage a VPC endpoint resource.
Example Usage
Access to the public service
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: exampleVpc.vpcV1Id,
});
const cloudService = flexibleengine.getVpcepPublicServices({
serviceName: "dns",
});
const myendpoint = new flexibleengine.VpcepEndpoint("myendpoint", {
serviceId: cloudService.then(cloudService => cloudService.services?.[0]?.id),
vpcId: exampleVpc.vpcV1Id,
networkId: exampleSubnet.vpcSubnetV1Id,
enableDns: true,
enableWhitelist: true,
whitelists: ["192.168.0.0/24"],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=example_vpc.vpc_v1_id)
cloud_service = flexibleengine.get_vpcep_public_services(service_name="dns")
myendpoint = flexibleengine.VpcepEndpoint("myendpoint",
service_id=cloud_service.services[0].id,
vpc_id=example_vpc.vpc_v1_id,
network_id=example_subnet.vpc_subnet_v1_id,
enable_dns=True,
enable_whitelist=True,
whitelists=["192.168.0.0/24"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: exampleVpc.VpcV1Id,
})
if err != nil {
return err
}
cloudService, err := flexibleengine.GetVpcepPublicServices(ctx, &flexibleengine.GetVpcepPublicServicesArgs{
ServiceName: pulumi.StringRef("dns"),
}, nil)
if err != nil {
return err
}
_, err = flexibleengine.NewVpcepEndpoint(ctx, "myendpoint", &flexibleengine.VpcepEndpointArgs{
ServiceId: pulumi.String(cloudService.Services[0].Id),
VpcId: exampleVpc.VpcV1Id,
NetworkId: exampleSubnet.VpcSubnetV1Id,
EnableDns: pulumi.Bool(true),
EnableWhitelist: pulumi.Bool(true),
Whitelists: pulumi.StringArray{
pulumi.String("192.168.0.0/24"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = exampleVpc.VpcV1Id,
});
var cloudService = Flexibleengine.GetVpcepPublicServices.Invoke(new()
{
ServiceName = "dns",
});
var myendpoint = new Flexibleengine.VpcepEndpoint("myendpoint", new()
{
ServiceId = cloudService.Apply(getVpcepPublicServicesResult => getVpcepPublicServicesResult.Services[0]?.Id),
VpcId = exampleVpc.VpcV1Id,
NetworkId = exampleSubnet.VpcSubnetV1Id,
EnableDns = true,
EnableWhitelist = true,
Whitelists = new[]
{
"192.168.0.0/24",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetVpcepPublicServicesArgs;
import com.pulumi.flexibleengine.VpcepEndpoint;
import com.pulumi.flexibleengine.VpcepEndpointArgs;
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) {
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(exampleVpc.vpcV1Id())
.build());
final var cloudService = FlexibleengineFunctions.getVpcepPublicServices(GetVpcepPublicServicesArgs.builder()
.serviceName("dns")
.build());
var myendpoint = new VpcepEndpoint("myendpoint", VpcepEndpointArgs.builder()
.serviceId(cloudService.applyValue(getVpcepPublicServicesResult -> getVpcepPublicServicesResult.services()[0].id()))
.vpcId(exampleVpc.vpcV1Id())
.networkId(exampleSubnet.vpcSubnetV1Id())
.enableDns(true)
.enableWhitelist(true)
.whitelists("192.168.0.0/24")
.build());
}
}
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
exampleSubnet:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${exampleVpc.vpcV1Id}
myendpoint:
type: flexibleengine:VpcepEndpoint
properties:
serviceId: ${cloudService.services[0].id}
vpcId: ${exampleVpc.vpcV1Id}
networkId: ${exampleSubnet.vpcSubnetV1Id}
enableDns: true
enableWhitelist: true
whitelists:
- 192.168.0.0/24
variables:
cloudService:
fn::invoke:
function: flexibleengine:getVpcepPublicServices
arguments:
serviceName: dns
Access to the private service
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const vmPort = config.requireObject("vmPort");
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: exampleVpc.vpcV1Id,
});
const demoVpcepService = new flexibleengine.VpcepService("demoVpcepService", {
serverType: "VM",
vpcId: flexibleengine_vpc_v1.example_vpc_service.id,
portId: vmPort,
portMappings: [{
servicePort: 8080,
terminalPort: 80,
}],
});
const demoVpcepEndpoint = new flexibleengine.VpcepEndpoint("demoVpcepEndpoint", {
serviceId: demoVpcepService.vpcepServiceId,
vpcId: exampleVpc.vpcV1Id,
networkId: exampleSubnet.vpcSubnetV1Id,
enableDns: true,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
vm_port = config.require_object("vmPort")
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=example_vpc.vpc_v1_id)
demo_vpcep_service = flexibleengine.VpcepService("demoVpcepService",
server_type="VM",
vpc_id=flexibleengine_vpc_v1["example_vpc_service"]["id"],
port_id=vm_port,
port_mappings=[{
"service_port": 8080,
"terminal_port": 80,
}])
demo_vpcep_endpoint = flexibleengine.VpcepEndpoint("demoVpcepEndpoint",
service_id=demo_vpcep_service.vpcep_service_id,
vpc_id=example_vpc.vpc_v1_id,
network_id=example_subnet.vpc_subnet_v1_id,
enable_dns=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"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, "")
vmPort := cfg.RequireObject("vmPort")
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: exampleVpc.VpcV1Id,
})
if err != nil {
return err
}
demoVpcepService, err := flexibleengine.NewVpcepService(ctx, "demoVpcepService", &flexibleengine.VpcepServiceArgs{
ServerType: pulumi.String("VM"),
VpcId: pulumi.Any(flexibleengine_vpc_v1.Example_vpc_service.Id),
PortId: pulumi.Any(vmPort),
PortMappings: flexibleengine.VpcepServicePortMappingArray{
&flexibleengine.VpcepServicePortMappingArgs{
ServicePort: pulumi.Float64(8080),
TerminalPort: pulumi.Float64(80),
},
},
})
if err != nil {
return err
}
_, err = flexibleengine.NewVpcepEndpoint(ctx, "demoVpcepEndpoint", &flexibleengine.VpcepEndpointArgs{
ServiceId: demoVpcepService.VpcepServiceId,
VpcId: exampleVpc.VpcV1Id,
NetworkId: exampleSubnet.VpcSubnetV1Id,
EnableDns: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vmPort = config.RequireObject<dynamic>("vmPort");
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = exampleVpc.VpcV1Id,
});
var demoVpcepService = new Flexibleengine.VpcepService("demoVpcepService", new()
{
ServerType = "VM",
VpcId = flexibleengine_vpc_v1.Example_vpc_service.Id,
PortId = vmPort,
PortMappings = new[]
{
new Flexibleengine.Inputs.VpcepServicePortMappingArgs
{
ServicePort = 8080,
TerminalPort = 80,
},
},
});
var demoVpcepEndpoint = new Flexibleengine.VpcepEndpoint("demoVpcepEndpoint", new()
{
ServiceId = demoVpcepService.VpcepServiceId,
VpcId = exampleVpc.VpcV1Id,
NetworkId = exampleSubnet.VpcSubnetV1Id,
EnableDns = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.VpcepService;
import com.pulumi.flexibleengine.VpcepServiceArgs;
import com.pulumi.flexibleengine.inputs.VpcepServicePortMappingArgs;
import com.pulumi.flexibleengine.VpcepEndpoint;
import com.pulumi.flexibleengine.VpcepEndpointArgs;
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 vmPort = config.get("vmPort");
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(exampleVpc.vpcV1Id())
.build());
var demoVpcepService = new VpcepService("demoVpcepService", VpcepServiceArgs.builder()
.serverType("VM")
.vpcId(flexibleengine_vpc_v1.example_vpc_service().id())
.portId(vmPort)
.portMappings(VpcepServicePortMappingArgs.builder()
.servicePort(8080)
.terminalPort(80)
.build())
.build());
var demoVpcepEndpoint = new VpcepEndpoint("demoVpcepEndpoint", VpcepEndpointArgs.builder()
.serviceId(demoVpcepService.vpcepServiceId())
.vpcId(exampleVpc.vpcV1Id())
.networkId(exampleSubnet.vpcSubnetV1Id())
.enableDns(true)
.build());
}
}
configuration:
vmPort:
type: dynamic
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
exampleSubnet:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${exampleVpc.vpcV1Id}
demoVpcepService:
type: flexibleengine:VpcepService
properties:
serverType: VM
vpcId: ${flexibleengine_vpc_v1.example_vpc_service.id}
portId: ${vmPort}
portMappings:
- servicePort: 8080
terminalPort: 80
demoVpcepEndpoint:
type: flexibleengine:VpcepEndpoint
properties:
serviceId: ${demoVpcepService.vpcepServiceId}
vpcId: ${exampleVpc.vpcV1Id}
networkId: ${exampleSubnet.vpcSubnetV1Id}
enableDns: true
Create VpcepEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcepEndpoint(name: string, args: VpcepEndpointArgs, opts?: CustomResourceOptions);
@overload
def VpcepEndpoint(resource_name: str,
args: VpcepEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcepEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
service_id: Optional[str] = None,
vpc_id: Optional[str] = None,
enable_dns: Optional[bool] = None,
enable_whitelist: Optional[bool] = None,
ip_address: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[VpcepEndpointTimeoutsArgs] = None,
vpcep_endpoint_id: Optional[str] = None,
whitelists: Optional[Sequence[str]] = None)
func NewVpcepEndpoint(ctx *Context, name string, args VpcepEndpointArgs, opts ...ResourceOption) (*VpcepEndpoint, error)
public VpcepEndpoint(string name, VpcepEndpointArgs args, CustomResourceOptions? opts = null)
public VpcepEndpoint(String name, VpcepEndpointArgs args)
public VpcepEndpoint(String name, VpcepEndpointArgs args, CustomResourceOptions options)
type: flexibleengine:VpcepEndpoint
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 VpcepEndpointArgs
- 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 VpcepEndpointArgs
- 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 VpcepEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcepEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcepEndpointArgs
- 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 vpcepEndpointResource = new Flexibleengine.VpcepEndpoint("vpcepEndpointResource", new()
{
NetworkId = "string",
ServiceId = "string",
VpcId = "string",
EnableDns = false,
EnableWhitelist = false,
IpAddress = "string",
Region = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Flexibleengine.Inputs.VpcepEndpointTimeoutsArgs
{
Create = "string",
Delete = "string",
},
VpcepEndpointId = "string",
Whitelists = new[]
{
"string",
},
});
example, err := flexibleengine.NewVpcepEndpoint(ctx, "vpcepEndpointResource", &flexibleengine.VpcepEndpointArgs{
NetworkId: pulumi.String("string"),
ServiceId: pulumi.String("string"),
VpcId: pulumi.String("string"),
EnableDns: pulumi.Bool(false),
EnableWhitelist: pulumi.Bool(false),
IpAddress: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &flexibleengine.VpcepEndpointTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VpcepEndpointId: pulumi.String("string"),
Whitelists: pulumi.StringArray{
pulumi.String("string"),
},
})
var vpcepEndpointResource = new VpcepEndpoint("vpcepEndpointResource", VpcepEndpointArgs.builder()
.networkId("string")
.serviceId("string")
.vpcId("string")
.enableDns(false)
.enableWhitelist(false)
.ipAddress("string")
.region("string")
.tags(Map.of("string", "string"))
.timeouts(VpcepEndpointTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vpcepEndpointId("string")
.whitelists("string")
.build());
vpcep_endpoint_resource = flexibleengine.VpcepEndpoint("vpcepEndpointResource",
network_id="string",
service_id="string",
vpc_id="string",
enable_dns=False,
enable_whitelist=False,
ip_address="string",
region="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
vpcep_endpoint_id="string",
whitelists=["string"])
const vpcepEndpointResource = new flexibleengine.VpcepEndpoint("vpcepEndpointResource", {
networkId: "string",
serviceId: "string",
vpcId: "string",
enableDns: false,
enableWhitelist: false,
ipAddress: "string",
region: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
vpcepEndpointId: "string",
whitelists: ["string"],
});
type: flexibleengine:VpcepEndpoint
properties:
enableDns: false
enableWhitelist: false
ipAddress: string
networkId: string
region: string
serviceId: string
tags:
string: string
timeouts:
create: string
delete: string
vpcId: string
vpcepEndpointId: string
whitelists:
- string
VpcepEndpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcepEndpoint resource accepts the following input properties:
- Network
Id string - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - Service
Id string - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- Vpc
Id string - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- Enable
Dns bool - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- Enable
Whitelist bool - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- Ip
Address string - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- Region string
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- Dictionary<string, string>
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint Timeouts - Vpcep
Endpoint stringId - The unique ID of the VPC endpoint.
- Whitelists List<string>
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- Network
Id string - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - Service
Id string - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- Vpc
Id string - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- Enable
Dns bool - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- Enable
Whitelist bool - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- Ip
Address string - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- Region string
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- map[string]string
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint Timeouts Args - Vpcep
Endpoint stringId - The unique ID of the VPC endpoint.
- Whitelists []string
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- network
Id String - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - service
Id String - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- vpc
Id String - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- enable
Dns Boolean - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable
Whitelist Boolean - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip
Address String - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- region String
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- Map<String,String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint Timeouts - vpcep
Endpoint StringId - The unique ID of the VPC endpoint.
- whitelists List<String>
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- network
Id string - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - service
Id string - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- vpc
Id string - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- enable
Dns boolean - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable
Whitelist boolean - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip
Address string - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- region string
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- {[key: string]: string}
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint Timeouts - vpcep
Endpoint stringId - The unique ID of the VPC endpoint.
- whitelists string[]
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- network_
id str - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - service_
id str - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- vpc_
id str - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- enable_
dns bool - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable_
whitelist bool - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip_
address str - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- region str
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- Mapping[str, str]
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint Timeouts Args - vpcep_
endpoint_ strid - The unique ID of the VPC endpoint.
- whitelists Sequence[str]
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- network
Id String - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - service
Id String - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- vpc
Id String - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- enable
Dns Boolean - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable
Whitelist Boolean - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip
Address String - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- region String
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- Map<String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts Property Map
- vpcep
Endpoint StringId - The unique ID of the VPC endpoint.
- whitelists List<String>
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcepEndpoint resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Packet
Id double - The packet ID of the VPC endpoint.
- Private
Domain stringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- Service
Name string - The name of the VPC endpoint service.
- Service
Type string - The type of the VPC endpoint service.
- Status string
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- Id string
- The provider-assigned unique ID for this managed resource.
- Packet
Id float64 - The packet ID of the VPC endpoint.
- Private
Domain stringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- Service
Name string - The name of the VPC endpoint service.
- Service
Type string - The type of the VPC endpoint service.
- Status string
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- id String
- The provider-assigned unique ID for this managed resource.
- packet
Id Double - The packet ID of the VPC endpoint.
- private
Domain StringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- service
Name String - The name of the VPC endpoint service.
- service
Type String - The type of the VPC endpoint service.
- status String
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- id string
- The provider-assigned unique ID for this managed resource.
- packet
Id number - The packet ID of the VPC endpoint.
- private
Domain stringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- service
Name string - The name of the VPC endpoint service.
- service
Type string - The type of the VPC endpoint service.
- status string
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- id str
- The provider-assigned unique ID for this managed resource.
- packet_
id float - The packet ID of the VPC endpoint.
- private_
domain_ strname - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- service_
name str - The name of the VPC endpoint service.
- service_
type str - The type of the VPC endpoint service.
- status str
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- id String
- The provider-assigned unique ID for this managed resource.
- packet
Id Number - The packet ID of the VPC endpoint.
- private
Domain StringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- service
Name String - The name of the VPC endpoint service.
- service
Type String - The type of the VPC endpoint service.
- status String
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
Look up Existing VpcepEndpoint Resource
Get an existing VpcepEndpoint 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?: VpcepEndpointState, opts?: CustomResourceOptions): VpcepEndpoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_dns: Optional[bool] = None,
enable_whitelist: Optional[bool] = None,
ip_address: Optional[str] = None,
network_id: Optional[str] = None,
packet_id: Optional[float] = None,
private_domain_name: Optional[str] = None,
region: Optional[str] = None,
service_id: Optional[str] = None,
service_name: Optional[str] = None,
service_type: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[VpcepEndpointTimeoutsArgs] = None,
vpc_id: Optional[str] = None,
vpcep_endpoint_id: Optional[str] = None,
whitelists: Optional[Sequence[str]] = None) -> VpcepEndpoint
func GetVpcepEndpoint(ctx *Context, name string, id IDInput, state *VpcepEndpointState, opts ...ResourceOption) (*VpcepEndpoint, error)
public static VpcepEndpoint Get(string name, Input<string> id, VpcepEndpointState? state, CustomResourceOptions? opts = null)
public static VpcepEndpoint get(String name, Output<String> id, VpcepEndpointState state, CustomResourceOptions options)
resources: _: type: flexibleengine:VpcepEndpoint get: id: ${id}
- 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.
- Enable
Dns bool - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- Enable
Whitelist bool - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- Ip
Address string - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- Network
Id string - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - Packet
Id double - The packet ID of the VPC endpoint.
- Private
Domain stringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- Region string
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- Service
Id string - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- Service
Name string - The name of the VPC endpoint service.
- Service
Type string - The type of the VPC endpoint service.
- Status string
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- Dictionary<string, string>
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint Timeouts - Vpc
Id string - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- Vpcep
Endpoint stringId - The unique ID of the VPC endpoint.
- Whitelists List<string>
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- Enable
Dns bool - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- Enable
Whitelist bool - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- Ip
Address string - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- Network
Id string - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - Packet
Id float64 - The packet ID of the VPC endpoint.
- Private
Domain stringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- Region string
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- Service
Id string - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- Service
Name string - The name of the VPC endpoint service.
- Service
Type string - The type of the VPC endpoint service.
- Status string
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- map[string]string
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint Timeouts Args - Vpc
Id string - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- Vpcep
Endpoint stringId - The unique ID of the VPC endpoint.
- Whitelists []string
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- enable
Dns Boolean - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable
Whitelist Boolean - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip
Address String - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- network
Id String - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - packet
Id Double - The packet ID of the VPC endpoint.
- private
Domain StringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- region String
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- service
Id String - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- service
Name String - The name of the VPC endpoint service.
- service
Type String - The type of the VPC endpoint service.
- status String
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- Map<String,String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint Timeouts - vpc
Id String - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- vpcep
Endpoint StringId - The unique ID of the VPC endpoint.
- whitelists List<String>
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- enable
Dns boolean - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable
Whitelist boolean - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip
Address string - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- network
Id string - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - packet
Id number - The packet ID of the VPC endpoint.
- private
Domain stringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- region string
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- service
Id string - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- service
Name string - The name of the VPC endpoint service.
- service
Type string - The type of the VPC endpoint service.
- status string
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- {[key: string]: string}
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint Timeouts - vpc
Id string - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- vpcep
Endpoint stringId - The unique ID of the VPC endpoint.
- whitelists string[]
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- enable_
dns bool - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable_
whitelist bool - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip_
address str - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- network_
id str - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - packet_
id float - The packet ID of the VPC endpoint.
- private_
domain_ strname - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- region str
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- service_
id str - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- service_
name str - The name of the VPC endpoint service.
- service_
type str - The type of the VPC endpoint service.
- status str
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- Mapping[str, str]
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint Timeouts Args - vpc_
id str - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- vpcep_
endpoint_ strid - The unique ID of the VPC endpoint.
- whitelists Sequence[str]
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
- enable
Dns Boolean - Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
- enable
Whitelist Boolean - Specifies whether to enable access control. The default value is false. Changing this creates a new VPC endpoint.
- ip
Address String - Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
- network
Id String - Specifies the network ID of the subnet in the VPC specified by
vpc_id
. Changing this creates a new VPC endpoint. - packet
Id Number - The packet ID of the VPC endpoint.
- private
Domain StringName - The domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
- region String
- The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
- service
Id String - Specifies the ID of the VPC endpoint service. Changing this creates a new VPC endpoint.
- service
Name String - The name of the VPC endpoint service.
- service
Type String - The type of the VPC endpoint service.
- status String
- The status of the VPC endpoint. The value can be accepted, pendingAcceptance or rejected.
- Map<String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts Property Map
- vpc
Id String - Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
- vpcep
Endpoint StringId - The unique ID of the VPC endpoint.
- whitelists List<String>
- Specifies the list of IP address or CIDR block, which can be accessed to the VPC endpoint. Changing this creates a new VPC endpoint.
Supporting Types
VpcepEndpointTimeouts, VpcepEndpointTimeoutsArgs
Import
VPC endpoint can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/vpcepEndpoint:VpcepEndpoint test 828907cc-40c9-42fe-8206-ecc1bdd30060
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.