published on Monday, Nov 2, 2026 by Pulumi
published on Monday, Nov 2, 2026 by Pulumi
Provides a VPC Endpoint resource.
NOTE on VPC Endpoints and VPC Endpoint Associations: The provider provides both standalone VPC Endpoint Associations for Route Tables - (an association between a VPC endpoint and a single
routeTableId), Security Groups - (an association between a VPC endpoint and a singlesecurityGroupId), and Subnets - (an association between a VPC endpoint and a singlesubnetId) and a VPC Endpoint resource withrouteTableIdsandsubnetIdsattributes. Do not use the same resource ID in both a VPC Endpoint resource and a VPC Endpoint Association resource. Doing so will cause a conflict of associations and will overwrite the association.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const s3 = new aws.ec2.VpcEndpoint("s3", {
vpcId: main.id,
serviceName: "com.amazonaws.us-west-2.s3",
});
import pulumi
import pulumi_aws as aws
s3 = aws.ec2.VpcEndpoint("s3",
vpc_id=main["id"],
service_name="com.amazonaws.us-west-2.s3")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "s3", &ec2.VpcEndpointArgs{
VpcId: pulumi.Any(main.Id),
ServiceName: pulumi.String("com.amazonaws.us-west-2.s3"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var s3 = new Aws.Ec2.VpcEndpoint("s3", new()
{
VpcId = main.Id,
ServiceName = "com.amazonaws.us-west-2.s3",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 s3 = new VpcEndpoint("s3", VpcEndpointArgs.builder()
.vpcId(main.get("id"))
.serviceName("com.amazonaws.us-west-2.s3")
.build());
}
}
resources:
s3:
type: aws:ec2:VpcEndpoint
properties:
vpcId: ${main.id}
serviceName: com.amazonaws.us-west-2.s3
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "s3" {
lifecycle {
create_before_destroy = true
}
vpc_id = main.id
service_name = "com.amazonaws.us-west-2.s3"
}
Basic w/ Tags
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const s3 = new aws.ec2.VpcEndpoint("s3", {
vpcId: main.id,
serviceName: "com.amazonaws.us-west-2.s3",
tags: {
Environment: "test",
},
});
import pulumi
import pulumi_aws as aws
s3 = aws.ec2.VpcEndpoint("s3",
vpc_id=main["id"],
service_name="com.amazonaws.us-west-2.s3",
tags={
"Environment": "test",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "s3", &ec2.VpcEndpointArgs{
VpcId: pulumi.Any(main.Id),
ServiceName: pulumi.String("com.amazonaws.us-west-2.s3"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("test"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var s3 = new Aws.Ec2.VpcEndpoint("s3", new()
{
VpcId = main.Id,
ServiceName = "com.amazonaws.us-west-2.s3",
Tags =
{
{ "Environment", "test" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 s3 = new VpcEndpoint("s3", VpcEndpointArgs.builder()
.vpcId(main.get("id"))
.serviceName("com.amazonaws.us-west-2.s3")
.tags(Map.of("Environment", "test"))
.build());
}
}
resources:
s3:
type: aws:ec2:VpcEndpoint
properties:
vpcId: ${main.id}
serviceName: com.amazonaws.us-west-2.s3
tags:
Environment: test
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "s3" {
lifecycle {
create_before_destroy = true
}
vpc_id = main.id
service_name = "com.amazonaws.us-west-2.s3"
tags = {
"Environment" = "test"
}
}
Cross-region enabled AWS services
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const s3 = new aws.ec2.VpcEndpoint("s3", {
region: "us-west-2",
vpcId: main.id,
serviceName: "com.amazonaws.us-east-2.s3",
serviceRegion: "us-east-2",
tags: {
Environment: "test",
},
});
import pulumi
import pulumi_aws as aws
s3 = aws.ec2.VpcEndpoint("s3",
region="us-west-2",
vpc_id=main["id"],
service_name="com.amazonaws.us-east-2.s3",
service_region="us-east-2",
tags={
"Environment": "test",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "s3", &ec2.VpcEndpointArgs{
Region: pulumi.String("us-west-2"),
VpcId: pulumi.Any(main.Id),
ServiceName: pulumi.String("com.amazonaws.us-east-2.s3"),
ServiceRegion: pulumi.String("us-east-2"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("test"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var s3 = new Aws.Ec2.VpcEndpoint("s3", new()
{
Region = "us-west-2",
VpcId = main.Id,
ServiceName = "com.amazonaws.us-east-2.s3",
ServiceRegion = "us-east-2",
Tags =
{
{ "Environment", "test" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 s3 = new VpcEndpoint("s3", VpcEndpointArgs.builder()
.region("us-west-2")
.vpcId(main.get("id"))
.serviceName("com.amazonaws.us-east-2.s3")
.serviceRegion("us-east-2")
.tags(Map.of("Environment", "test"))
.build());
}
}
resources:
s3:
type: aws:ec2:VpcEndpoint
properties:
region: us-west-2
vpcId: ${main.id}
serviceName: com.amazonaws.us-east-2.s3
serviceRegion: us-east-2
tags:
Environment: test
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "s3" {
lifecycle {
create_before_destroy = true
}
region = "us-west-2"
vpc_id = main.id
service_name = "com.amazonaws.us-east-2.s3"
service_region = "us-east-2"
tags = {
"Environment" = "test"
}
}
Interface Endpoint Type
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const ec2 = new aws.ec2.VpcEndpoint("ec2", {
vpcId: main.id,
serviceName: "com.amazonaws.us-west-2.ec2",
vpcEndpointType: "Interface",
securityGroupIds: [sg1.id],
privateDnsEnabled: true,
});
import pulumi
import pulumi_aws as aws
ec2 = aws.ec2.VpcEndpoint("ec2",
vpc_id=main["id"],
service_name="com.amazonaws.us-west-2.ec2",
vpc_endpoint_type="Interface",
security_group_ids=[sg1["id"]],
private_dns_enabled=True)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "ec2", &ec2.VpcEndpointArgs{
VpcId: pulumi.Any(main.Id),
ServiceName: pulumi.String("com.amazonaws.us-west-2.ec2"),
VpcEndpointType: pulumi.String("Interface"),
SecurityGroupIds: pulumi.StringArray{
sg1.Id,
},
PrivateDnsEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var ec2 = new Aws.Ec2.VpcEndpoint("ec2", new()
{
VpcId = main.Id,
ServiceName = "com.amazonaws.us-west-2.ec2",
VpcEndpointType = "Interface",
SecurityGroupIds = new[]
{
sg1.Id,
},
PrivateDnsEnabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 ec2 = new VpcEndpoint("ec2", VpcEndpointArgs.builder()
.vpcId(main.get("id"))
.serviceName("com.amazonaws.us-west-2.ec2")
.vpcEndpointType("Interface")
.securityGroupIds(sg1.get("id"))
.privateDnsEnabled(true)
.build());
}
}
resources:
ec2:
type: aws:ec2:VpcEndpoint
properties:
vpcId: ${main.id}
serviceName: com.amazonaws.us-west-2.ec2
vpcEndpointType: Interface
securityGroupIds:
- ${sg1.id}
privateDnsEnabled: true
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "ec2" {
lifecycle {
create_before_destroy = true
}
vpc_id = main.id
service_name = "com.amazonaws.us-west-2.ec2"
vpc_endpoint_type = "Interface"
security_group_ids = [sg1.id]
private_dns_enabled = true
}
Interface Endpoint Type with User-Defined IP Address
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const ec2 = new aws.ec2.VpcEndpoint("ec2", {
subnetConfigurations: [
{
ipv4: "10.0.1.10",
subnetId: example1.id,
},
{
ipv4: "10.0.2.10",
subnetId: example2.id,
},
],
vpcId: example.id,
serviceName: "com.amazonaws.us-west-2.ec2",
vpcEndpointType: "Interface",
subnetIds: [
example1.id,
example2.id,
],
});
import pulumi
import pulumi_aws as aws
ec2 = aws.ec2.VpcEndpoint("ec2",
subnet_configurations=[
{
"ipv4": "10.0.1.10",
"subnet_id": example1["id"],
},
{
"ipv4": "10.0.2.10",
"subnet_id": example2["id"],
},
],
vpc_id=example["id"],
service_name="com.amazonaws.us-west-2.ec2",
vpc_endpoint_type="Interface",
subnet_ids=[
example1["id"],
example2["id"],
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "ec2", &ec2.VpcEndpointArgs{
SubnetConfigurations: ec2.VpcEndpointSubnetConfigurationArray{
&ec2.VpcEndpointSubnetConfigurationArgs{
Ipv4: pulumi.String("10.0.1.10"),
SubnetId: pulumi.Any(example1.Id),
},
&ec2.VpcEndpointSubnetConfigurationArgs{
Ipv4: pulumi.String("10.0.2.10"),
SubnetId: pulumi.Any(example2.Id),
},
},
VpcId: pulumi.Any(example.Id),
ServiceName: pulumi.String("com.amazonaws.us-west-2.ec2"),
VpcEndpointType: pulumi.String("Interface"),
SubnetIds: pulumi.StringArray{
example1.Id,
example2.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var ec2 = new Aws.Ec2.VpcEndpoint("ec2", new()
{
SubnetConfigurations = new[]
{
new Aws.Ec2.Inputs.VpcEndpointSubnetConfigurationArgs
{
Ipv4 = "10.0.1.10",
SubnetId = example1.Id,
},
new Aws.Ec2.Inputs.VpcEndpointSubnetConfigurationArgs
{
Ipv4 = "10.0.2.10",
SubnetId = example2.Id,
},
},
VpcId = example.Id,
ServiceName = "com.amazonaws.us-west-2.ec2",
VpcEndpointType = "Interface",
SubnetIds = new[]
{
example1.Id,
example2.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import com.pulumi.aws.ec2.inputs.VpcEndpointSubnetConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 ec2 = new VpcEndpoint("ec2", VpcEndpointArgs.builder()
.subnetConfigurations(
VpcEndpointSubnetConfigurationArgs.builder()
.ipv4("10.0.1.10")
.subnetId(example1.get("id"))
.build(),
VpcEndpointSubnetConfigurationArgs.builder()
.ipv4("10.0.2.10")
.subnetId(example2.get("id"))
.build())
.vpcId(example.get("id"))
.serviceName("com.amazonaws.us-west-2.ec2")
.vpcEndpointType("Interface")
.subnetIds(
example1.get("id"),
example2.get("id"))
.build());
}
}
resources:
ec2:
type: aws:ec2:VpcEndpoint
properties:
subnetConfigurations:
- ipv4: 10.0.1.10
subnetId: ${example1.id}
- ipv4: 10.0.2.10
subnetId: ${example2.id}
vpcId: ${example.id}
serviceName: com.amazonaws.us-west-2.ec2
vpcEndpointType: Interface
subnetIds:
- ${example1.id}
- ${example2.id}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "ec2" {
lifecycle {
create_before_destroy = true
}
subnet_configurations {
ipv4 = "10.0.1.10"
subnet_id = example1.id
}
subnet_configurations {
ipv4 = "10.0.2.10"
subnet_id = example2.id
}
vpc_id = example.id
service_name = "com.amazonaws.us-west-2.ec2"
vpc_endpoint_type = "Interface"
subnet_ids = [example1.id, example2.id]
}
Gateway Load Balancer Endpoint Type
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.getCallerIdentity({});
const example = new aws.ec2.VpcEndpointService("example", {
acceptanceRequired: false,
allowedPrincipals: [current.then(current => current.arn)],
gatewayLoadBalancerArns: [exampleAwsLb.arn],
});
const exampleVpcEndpoint = new aws.ec2.VpcEndpoint("example", {
serviceName: example.serviceName,
subnetIds: [exampleAwsSubnet.id],
vpcEndpointType: example.serviceType,
vpcId: exampleAwsVpc.id,
});
import pulumi
import pulumi_aws as aws
current = aws.get_caller_identity()
example = aws.ec2.VpcEndpointService("example",
acceptance_required=False,
allowed_principals=[current.arn],
gateway_load_balancer_arns=[example_aws_lb["arn"]])
example_vpc_endpoint = aws.ec2.VpcEndpoint("example",
service_name=example.service_name,
subnet_ids=[example_aws_subnet["id"]],
vpc_endpoint_type=example.service_type,
vpc_id=example_aws_vpc["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := aws.GetCallerIdentity(ctx, &aws.GetCallerIdentityArgs{}, nil)
if err != nil {
return err
}
example, err := ec2.NewVpcEndpointService(ctx, "example", &ec2.VpcEndpointServiceArgs{
AcceptanceRequired: pulumi.Bool(false),
AllowedPrincipals: pulumi.StringArray{
pulumi.String(current.Arn),
},
GatewayLoadBalancerArns: pulumi.StringArray{
exampleAwsLb.Arn,
},
})
if err != nil {
return err
}
_, err = ec2.NewVpcEndpoint(ctx, "example", &ec2.VpcEndpointArgs{
ServiceName: example.ServiceName,
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
VpcEndpointType: example.ServiceType,
VpcId: pulumi.Any(exampleAwsVpc.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var current = Aws.GetCallerIdentity.Invoke();
var example = new Aws.Ec2.VpcEndpointService("example", new()
{
AcceptanceRequired = false,
AllowedPrincipals = new[]
{
current.Apply(getCallerIdentityResult => getCallerIdentityResult.Arn),
},
GatewayLoadBalancerArns = new[]
{
exampleAwsLb.Arn,
},
});
var exampleVpcEndpoint = new Aws.Ec2.VpcEndpoint("example", new()
{
ServiceName = example.ServiceName,
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
VpcEndpointType = example.ServiceType,
VpcId = exampleAwsVpc.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetCallerIdentityArgs;
import com.pulumi.aws.ec2.VpcEndpointService;
import com.pulumi.aws.ec2.VpcEndpointServiceArgs;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 current = AwsFunctions.getCallerIdentity(GetCallerIdentityArgs.builder()
.build());
var example = new VpcEndpointService("example", VpcEndpointServiceArgs.builder()
.acceptanceRequired(false)
.allowedPrincipals(current.arn())
.gatewayLoadBalancerArns(exampleAwsLb.get("arn"))
.build());
var exampleVpcEndpoint = new VpcEndpoint("exampleVpcEndpoint", VpcEndpointArgs.builder()
.serviceName(example.serviceName())
.subnetIds(exampleAwsSubnet.get("id"))
.vpcEndpointType(example.serviceType())
.vpcId(exampleAwsVpc.get("id"))
.build());
}
}
resources:
example:
type: aws:ec2:VpcEndpointService
properties:
acceptanceRequired: false
allowedPrincipals:
- ${current.arn}
gatewayLoadBalancerArns:
- ${exampleAwsLb.arn}
exampleVpcEndpoint:
type: aws:ec2:VpcEndpoint
name: example
properties:
serviceName: ${example.serviceName}
subnetIds:
- ${exampleAwsSubnet.id}
vpcEndpointType: ${example.serviceType}
vpcId: ${exampleAwsVpc.id}
variables:
current:
fn::invoke:
function: aws:getCallerIdentity
arguments: {}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_caller_identity" "current" {
}
resource "aws_ec2_vpc_endpoint_service" "example" {
lifecycle {
create_before_destroy = true
}
acceptance_required = false
allowed_principals = [data.aws_caller_identity.current.arn]
gateway_load_balancer_arns = [exampleAwsLb.arn]
}
resource "aws_ec2_vpc_endpoint" "example" {
lifecycle {
create_before_destroy = true
}
service_name = aws_ec2_vpc_endpoint_service.example.service_name
subnet_ids = [exampleAwsSubnet.id]
vpc_endpoint_type = aws_ec2_vpc_endpoint_service.example.service_type
vpc_id = exampleAwsVpc.id
}
VPC Lattice Resource Configuration Endpoint Type
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.VpcEndpoint("example", {
resourceConfigurationArn: exampleAwsVpclatticeResourceConfiguration.arn,
subnetIds: [exampleAwsSubnet.id],
vpcEndpointType: "Resource",
vpcId: exampleAwsVpc.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.VpcEndpoint("example",
resource_configuration_arn=example_aws_vpclattice_resource_configuration["arn"],
subnet_ids=[example_aws_subnet["id"]],
vpc_endpoint_type="Resource",
vpc_id=example_aws_vpc["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "example", &ec2.VpcEndpointArgs{
ResourceConfigurationArn: pulumi.Any(exampleAwsVpclatticeResourceConfiguration.Arn),
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
VpcEndpointType: pulumi.String("Resource"),
VpcId: pulumi.Any(exampleAwsVpc.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2.VpcEndpoint("example", new()
{
ResourceConfigurationArn = exampleAwsVpclatticeResourceConfiguration.Arn,
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
VpcEndpointType = "Resource",
VpcId = exampleAwsVpc.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new VpcEndpoint("example", VpcEndpointArgs.builder()
.resourceConfigurationArn(exampleAwsVpclatticeResourceConfiguration.get("arn"))
.subnetIds(exampleAwsSubnet.get("id"))
.vpcEndpointType("Resource")
.vpcId(exampleAwsVpc.get("id"))
.build());
}
}
resources:
example:
type: aws:ec2:VpcEndpoint
properties:
resourceConfigurationArn: ${exampleAwsVpclatticeResourceConfiguration.arn}
subnetIds:
- ${exampleAwsSubnet.id}
vpcEndpointType: Resource
vpcId: ${exampleAwsVpc.id}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "example" {
lifecycle {
create_before_destroy = true
}
resource_configuration_arn = exampleAwsVpclatticeResourceConfiguration.arn
subnet_ids = [exampleAwsSubnet.id]
vpc_endpoint_type = "Resource"
vpc_id = exampleAwsVpc.id
}
VPC Lattice Service Network Endpoint Type
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.VpcEndpoint("example", {
serviceNetworkArn: exampleAwsVpclatticeServiceNetwork.arn,
subnetIds: [exampleAwsSubnet.id],
vpcEndpointType: "ServiceNetwork",
vpcId: exampleAwsVpc.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.VpcEndpoint("example",
service_network_arn=example_aws_vpclattice_service_network["arn"],
subnet_ids=[example_aws_subnet["id"]],
vpc_endpoint_type="ServiceNetwork",
vpc_id=example_aws_vpc["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "example", &ec2.VpcEndpointArgs{
ServiceNetworkArn: pulumi.Any(exampleAwsVpclatticeServiceNetwork.Arn),
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
VpcEndpointType: pulumi.String("ServiceNetwork"),
VpcId: pulumi.Any(exampleAwsVpc.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2.VpcEndpoint("example", new()
{
ServiceNetworkArn = exampleAwsVpclatticeServiceNetwork.Arn,
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
VpcEndpointType = "ServiceNetwork",
VpcId = exampleAwsVpc.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new VpcEndpoint("example", VpcEndpointArgs.builder()
.serviceNetworkArn(exampleAwsVpclatticeServiceNetwork.get("arn"))
.subnetIds(exampleAwsSubnet.get("id"))
.vpcEndpointType("ServiceNetwork")
.vpcId(exampleAwsVpc.get("id"))
.build());
}
}
resources:
example:
type: aws:ec2:VpcEndpoint
properties:
serviceNetworkArn: ${exampleAwsVpclatticeServiceNetwork.arn}
subnetIds:
- ${exampleAwsSubnet.id}
vpcEndpointType: ServiceNetwork
vpcId: ${exampleAwsVpc.id}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "example" {
lifecycle {
create_before_destroy = true
}
service_network_arn = exampleAwsVpclatticeServiceNetwork.arn
subnet_ids = [exampleAwsSubnet.id]
vpc_endpoint_type = "ServiceNetwork"
vpc_id = exampleAwsVpc.id
}
VPC Lattice Tunnel Endpoint Type
A Tunnel endpoint connects to exactly one CIDR type aws.vpclattice.ResourceConfiguration, and consumers must send GENEVE-encapsulated traffic (UDP port 6081) to it. See Access a network segment through a tunnel VPC endpoint.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.VpcEndpoint("example", {
resourceConfigurationArn: exampleAwsVpclatticeResourceConfiguration.arn,
securityGroupIds: [exampleAwsSecurityGroup.id],
subnetIds: [
example1.id,
example2.id,
],
vpcEndpointType: "Tunnel",
vpcId: exampleAwsVpc.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.VpcEndpoint("example",
resource_configuration_arn=example_aws_vpclattice_resource_configuration["arn"],
security_group_ids=[example_aws_security_group["id"]],
subnet_ids=[
example1["id"],
example2["id"],
],
vpc_endpoint_type="Tunnel",
vpc_id=example_aws_vpc["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcEndpoint(ctx, "example", &ec2.VpcEndpointArgs{
ResourceConfigurationArn: pulumi.Any(exampleAwsVpclatticeResourceConfiguration.Arn),
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
SubnetIds: pulumi.StringArray{
example1.Id,
example2.Id,
},
VpcEndpointType: pulumi.String("Tunnel"),
VpcId: pulumi.Any(exampleAwsVpc.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2.VpcEndpoint("example", new()
{
ResourceConfigurationArn = exampleAwsVpclatticeResourceConfiguration.Arn,
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
SubnetIds = new[]
{
example1.Id,
example2.Id,
},
VpcEndpointType = "Tunnel",
VpcId = exampleAwsVpc.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new VpcEndpoint("example", VpcEndpointArgs.builder()
.resourceConfigurationArn(exampleAwsVpclatticeResourceConfiguration.get("arn"))
.securityGroupIds(exampleAwsSecurityGroup.get("id"))
.subnetIds(
example1.get("id"),
example2.get("id"))
.vpcEndpointType("Tunnel")
.vpcId(exampleAwsVpc.get("id"))
.build());
}
}
resources:
example:
type: aws:ec2:VpcEndpoint
properties:
resourceConfigurationArn: ${exampleAwsVpclatticeResourceConfiguration.arn}
securityGroupIds:
- ${exampleAwsSecurityGroup.id}
subnetIds:
- ${example1.id}
- ${example2.id}
vpcEndpointType: Tunnel
vpcId: ${exampleAwsVpc.id}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc_endpoint" "example" {
lifecycle {
create_before_destroy = true
}
resource_configuration_arn = exampleAwsVpclatticeResourceConfiguration.arn
security_group_ids = [exampleAwsSecurityGroup.id]
subnet_ids = [example1.id, example2.id]
vpc_endpoint_type = "Tunnel"
vpc_id = exampleAwsVpc.id
}
Non-AWS Service
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const ptfeService = new aws.ec2.VpcEndpoint("ptfe_service", {
vpcId: vpcId,
serviceName: ptfeServiceConfig,
vpcEndpointType: "Interface",
securityGroupIds: [ptfeServiceAwsSecurityGroup.id],
subnetIds: [subnetIds],
privateDnsEnabled: false,
});
const internal = aws.route53.getZone({
name: "vpc.internal.",
privateZone: true,
vpcId: vpcId,
});
const ptfeServiceRecord = new aws.route53.Record("ptfe_service", {
zoneId: internal.then(internal => internal.zoneId),
name: internal.then(internal => `ptfe.${internal.name}`),
type: aws.route53.RecordType.CNAME,
ttl: 300,
records: [ptfeService.dnsEntries[0].dns_name],
});
import pulumi
import pulumi_aws as aws
ptfe_service = aws.ec2.VpcEndpoint("ptfe_service",
vpc_id=vpc_id,
service_name=ptfe_service_config,
vpc_endpoint_type="Interface",
security_group_ids=[ptfe_service_aws_security_group["id"]],
subnet_ids=[subnet_ids],
private_dns_enabled=False)
internal = aws.route53.get_zone(name="vpc.internal.",
private_zone=True,
vpc_id=vpc_id)
ptfe_service_record = aws.route53.Record("ptfe_service",
zone_id=internal.zone_id,
name=f"ptfe.{internal.name}",
type=aws.route53.RecordType.CNAME,
ttl=300,
records=[ptfe_service.dns_entries[0].dns_name])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ptfeService, err := ec2.NewVpcEndpoint(ctx, "ptfe_service", &ec2.VpcEndpointArgs{
VpcId: pulumi.Any(vpcId),
ServiceName: pulumi.Any(ptfeServiceConfig),
VpcEndpointType: pulumi.String("Interface"),
SecurityGroupIds: pulumi.StringArray{
ptfeServiceAwsSecurityGroup.Id,
},
SubnetIds: pulumi.StringArray{
subnetIds,
},
PrivateDnsEnabled: pulumi.Bool(false),
})
if err != nil {
return err
}
internal, err := route53.LookupZone(ctx, &route53.LookupZoneArgs{
Name: pulumi.StringRef("vpc.internal."),
PrivateZone: pulumi.BoolRef(true),
VpcId: pulumi.StringRef(vpcId),
}, nil)
if err != nil {
return err
}
_, err = route53.NewRecord(ctx, "ptfe_service", &route53.RecordArgs{
ZoneId: pulumi.String(internal.ZoneId),
Name: pulumi.Sprintf("ptfe.%v", internal.Name),
Type: pulumi.String(route53.RecordTypeCNAME),
Ttl: pulumi.Int(300),
Records: pulumi.StringArray{
pulumi.String(ptfeService.DnsEntries.ApplyT(func(dnsEntries []ec2.VpcEndpointDnsEntry) (interface{}, error) {
return dnsEntries[0].Dns_name, nil
}).(pulumi.AnyOutput)),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var ptfeService = new Aws.Ec2.VpcEndpoint("ptfe_service", new()
{
VpcId = vpcId,
ServiceName = ptfeServiceConfig,
VpcEndpointType = "Interface",
SecurityGroupIds = new[]
{
ptfeServiceAwsSecurityGroup.Id,
},
SubnetIds = new[]
{
subnetIds,
},
PrivateDnsEnabled = false,
});
var @internal = Aws.Route53.GetZone.Invoke(new()
{
Name = "vpc.internal.",
PrivateZone = true,
VpcId = vpcId,
});
var ptfeServiceRecord = new Aws.Route53.Record("ptfe_service", new()
{
ZoneId = @internal.Apply(@internal => @internal.Apply(getZoneResult => getZoneResult.ZoneId)),
Name = @internal.Apply(@internal => $"ptfe.{@internal.Apply(getZoneResult => getZoneResult.Name)}"),
Type = Aws.Route53.RecordType.CNAME,
Ttl = 300,
Records = new[]
{
ptfeService.DnsEntries.Apply(dnsEntries => dnsEntries[0].Dns_name),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpoint;
import com.pulumi.aws.ec2.VpcEndpointArgs;
import com.pulumi.aws.route53.Route53Functions;
import com.pulumi.aws.route53.inputs.GetZoneArgs;
import com.pulumi.aws.route53.Record;
import com.pulumi.aws.route53.RecordArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 ptfeService = new VpcEndpoint("ptfeService", VpcEndpointArgs.builder()
.vpcId(vpcId)
.serviceName(ptfeServiceConfig)
.vpcEndpointType("Interface")
.securityGroupIds(ptfeServiceAwsSecurityGroup.get("id"))
.subnetIds(subnetIds)
.privateDnsEnabled(false)
.build());
final var internal = Route53Functions.getZone(GetZoneArgs.builder()
.name("vpc.internal.")
.privateZone(true)
.vpcId(vpcId)
.build());
var ptfeServiceRecord = new Record("ptfeServiceRecord", RecordArgs.builder()
.zoneId(internal.zoneId())
.name(String.format("ptfe.%s", internal.name()))
.type("CNAME")
.ttl(300)
.records(ptfeService.dnsEntries().applyValue(_dnsEntries -> _dnsEntries.get(0).dns_name()))
.build());
}
}
resources:
ptfeService:
type: aws:ec2:VpcEndpoint
name: ptfe_service
properties:
vpcId: ${vpcId}
serviceName: ${ptfeServiceConfig}
vpcEndpointType: Interface
securityGroupIds:
- ${ptfeServiceAwsSecurityGroup.id}
subnetIds:
- ${subnetIds}
privateDnsEnabled: false
ptfeServiceRecord:
type: aws:route53:Record
name: ptfe_service
properties:
zoneId: ${internal.zoneId}
name: ptfe.${internal.name}
type: CNAME
ttl: '300'
records:
- ${ptfeService.dnsEntries[0].dns_name}
variables:
internal:
fn::invoke:
function: aws:route53:getZone
arguments:
name: vpc.internal.
privateZone: true
vpcId: ${vpcId}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_route53_zone" "internal" {
name = "vpc.internal."
private_zone = true
vpc_id = vpcId
}
resource "aws_ec2_vpc_endpoint" "ptfe_service" {
lifecycle {
create_before_destroy = true
}
vpc_id = vpcId
service_name = ptfeServiceConfig
vpc_endpoint_type = "Interface"
security_group_ids = [ptfeServiceAwsSecurityGroup.id]
subnet_ids = [subnetIds]
private_dns_enabled = false
}
resource "aws_route53_record" "ptfe_service" {
lifecycle {
create_before_destroy = true
}
zone_id = data.aws_route53_zone.internal.zone_id
name ="ptfe.${data.aws_route53_zone.internal.name}"
type = "CNAME"
ttl = "300"
records = [aws_ec2_vpc_endpoint.ptfe_service.dns_entries[0]["dns_name"]]
}
NOTE The
dnsEntryoutput is a list of maps: This provider interpolation support for lists of maps requires thelookupand[]until full support of lists of maps is available
Create VpcEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcEndpoint(name: string, args: VpcEndpointArgs, opts?: CustomResourceOptions);@overload
def VpcEndpoint(resource_name: str,
args: VpcEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
service_network_arn: Optional[str] = None,
policy: Optional[str] = None,
private_dns_enabled: Optional[bool] = None,
region: Optional[str] = None,
resource_configuration_arn: Optional[str] = None,
ip_address_type: Optional[str] = None,
route_table_ids: Optional[Sequence[str]] = None,
service_name: Optional[str] = None,
auto_accept: Optional[bool] = None,
service_region: Optional[str] = None,
subnet_configurations: Optional[Sequence[VpcEndpointSubnetConfigurationArgs]] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_endpoint_type: Optional[str] = None,
dns_options: Optional[VpcEndpointDnsOptionsArgs] = None)func NewVpcEndpoint(ctx *Context, name string, args VpcEndpointArgs, opts ...ResourceOption) (*VpcEndpoint, error)public VpcEndpoint(string name, VpcEndpointArgs args, CustomResourceOptions? opts = null)
public VpcEndpoint(String name, VpcEndpointArgs args)
public VpcEndpoint(String name, VpcEndpointArgs args, CustomResourceOptions options)
type: aws:ec2:VpcEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_ec2_vpc_endpoint" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpcEndpointArgs
- 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 VpcEndpointArgs
- 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 VpcEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcEndpointArgs
- 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 vpcEndpointResource = new Aws.Ec2.VpcEndpoint("vpcEndpointResource", new()
{
VpcId = "string",
SecurityGroupIds = new[]
{
"string",
},
ServiceNetworkArn = "string",
Policy = "string",
PrivateDnsEnabled = false,
Region = "string",
ResourceConfigurationArn = "string",
IpAddressType = "string",
RouteTableIds = new[]
{
"string",
},
ServiceName = "string",
AutoAccept = false,
ServiceRegion = "string",
SubnetConfigurations = new[]
{
new Aws.Ec2.Inputs.VpcEndpointSubnetConfigurationArgs
{
Ipv4 = "string",
Ipv6 = "string",
SubnetId = "string",
},
},
SubnetIds = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
VpcEndpointType = "string",
DnsOptions = new Aws.Ec2.Inputs.VpcEndpointDnsOptionsArgs
{
DnsRecordIpType = "string",
PrivateDnsOnlyForInboundResolverEndpoint = false,
PrivateDnsPreference = "string",
PrivateDnsSpecifiedDomains = new[]
{
"string",
},
},
});
example, err := ec2.NewVpcEndpoint(ctx, "vpcEndpointResource", &ec2.VpcEndpointArgs{
VpcId: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
ServiceNetworkArn: pulumi.String("string"),
Policy: pulumi.String("string"),
PrivateDnsEnabled: pulumi.Bool(false),
Region: pulumi.String("string"),
ResourceConfigurationArn: pulumi.String("string"),
IpAddressType: pulumi.String("string"),
RouteTableIds: pulumi.StringArray{
pulumi.String("string"),
},
ServiceName: pulumi.String("string"),
AutoAccept: pulumi.Bool(false),
ServiceRegion: pulumi.String("string"),
SubnetConfigurations: ec2.VpcEndpointSubnetConfigurationArray{
&ec2.VpcEndpointSubnetConfigurationArgs{
Ipv4: pulumi.String("string"),
Ipv6: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VpcEndpointType: pulumi.String("string"),
DnsOptions: &ec2.VpcEndpointDnsOptionsArgs{
DnsRecordIpType: pulumi.String("string"),
PrivateDnsOnlyForInboundResolverEndpoint: pulumi.Bool(false),
PrivateDnsPreference: pulumi.String("string"),
PrivateDnsSpecifiedDomains: pulumi.StringArray{
pulumi.String("string"),
},
},
})
resource "aws_ec2_vpc_endpoint" "vpcEndpointResource" {
lifecycle {
create_before_destroy = true
}
vpc_id = "string"
security_group_ids = ["string"]
service_network_arn = "string"
policy = "string"
private_dns_enabled = false
region = "string"
resource_configuration_arn = "string"
ip_address_type = "string"
route_table_ids = ["string"]
service_name = "string"
auto_accept = false
service_region = "string"
subnet_configurations {
ipv4 = "string"
ipv6 = "string"
subnet_id = "string"
}
subnet_ids = ["string"]
tags = {
"string" = "string"
}
vpc_endpoint_type = "string"
dns_options = {
dns_record_ip_type = "string"
private_dns_only_for_inbound_resolver_endpoint = false
private_dns_preference = "string"
private_dns_specified_domains = ["string"]
}
}
var vpcEndpointResource = new com.pulumi.aws.ec2.VpcEndpoint("vpcEndpointResource", com.pulumi.aws.ec2.VpcEndpointArgs.builder()
.vpcId("string")
.securityGroupIds("string")
.serviceNetworkArn("string")
.policy("string")
.privateDnsEnabled(false)
.region("string")
.resourceConfigurationArn("string")
.ipAddressType("string")
.routeTableIds("string")
.serviceName("string")
.autoAccept(false)
.serviceRegion("string")
.subnetConfigurations(VpcEndpointSubnetConfigurationArgs.builder()
.ipv4("string")
.ipv6("string")
.subnetId("string")
.build())
.subnetIds("string")
.tags(Map.of("string", "string"))
.vpcEndpointType("string")
.dnsOptions(VpcEndpointDnsOptionsArgs.builder()
.dnsRecordIpType("string")
.privateDnsOnlyForInboundResolverEndpoint(false)
.privateDnsPreference("string")
.privateDnsSpecifiedDomains("string")
.build())
.build());
vpc_endpoint_resource = aws.ec2.VpcEndpoint("vpcEndpointResource",
vpc_id="string",
security_group_ids=["string"],
service_network_arn="string",
policy="string",
private_dns_enabled=False,
region="string",
resource_configuration_arn="string",
ip_address_type="string",
route_table_ids=["string"],
service_name="string",
auto_accept=False,
service_region="string",
subnet_configurations=[{
"ipv4": "string",
"ipv6": "string",
"subnet_id": "string",
}],
subnet_ids=["string"],
tags={
"string": "string",
},
vpc_endpoint_type="string",
dns_options={
"dns_record_ip_type": "string",
"private_dns_only_for_inbound_resolver_endpoint": False,
"private_dns_preference": "string",
"private_dns_specified_domains": ["string"],
})
const vpcEndpointResource = new aws.ec2.VpcEndpoint("vpcEndpointResource", {
vpcId: "string",
securityGroupIds: ["string"],
serviceNetworkArn: "string",
policy: "string",
privateDnsEnabled: false,
region: "string",
resourceConfigurationArn: "string",
ipAddressType: "string",
routeTableIds: ["string"],
serviceName: "string",
autoAccept: false,
serviceRegion: "string",
subnetConfigurations: [{
ipv4: "string",
ipv6: "string",
subnetId: "string",
}],
subnetIds: ["string"],
tags: {
string: "string",
},
vpcEndpointType: "string",
dnsOptions: {
dnsRecordIpType: "string",
privateDnsOnlyForInboundResolverEndpoint: false,
privateDnsPreference: "string",
privateDnsSpecifiedDomains: ["string"],
},
});
type: aws:ec2:VpcEndpoint
properties:
autoAccept: false
dnsOptions:
dnsRecordIpType: string
privateDnsOnlyForInboundResolverEndpoint: false
privateDnsPreference: string
privateDnsSpecifiedDomains:
- string
ipAddressType: string
policy: string
privateDnsEnabled: false
region: string
resourceConfigurationArn: string
routeTableIds:
- string
securityGroupIds:
- string
serviceName: string
serviceNetworkArn: string
serviceRegion: string
subnetConfigurations:
- ipv4: string
ipv6: string
subnetId: string
subnetIds:
- string
tags:
string: string
vpcEndpointType: string
vpcId: string
VpcEndpoint 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 VpcEndpoint resource accepts the following input properties:
- Vpc
Id string - ID of the VPC in which the endpoint will be used.
- Auto
Accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- Dns
Options VpcEndpoint Dns Options - DNS options for the endpoint. See
dnsOptionsbelow. - Ip
Address stringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - Policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - Private
Dns boolEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Resource
Configuration stringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - Route
Table List<string>Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - Security
Group List<string>Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - Service
Name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Network stringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - Subnet
Configurations List<VpcEndpoint Subnet Configuration> - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- Subnet
Ids List<string> - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Vpc
Endpoint stringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway.
- Vpc
Id string - ID of the VPC in which the endpoint will be used.
- Auto
Accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- Dns
Options VpcEndpoint Dns Options Args - DNS options for the endpoint. See
dnsOptionsbelow. - Ip
Address stringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - Policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - Private
Dns boolEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Resource
Configuration stringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - Route
Table []stringIds - One or more route table IDs. Applicable for endpoints of type
Gateway. - Security
Group []stringIds - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - Service
Name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Network stringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - Subnet
Configurations []VpcEndpoint Subnet Configuration Args - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- Subnet
Ids []string - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - map[string]string
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Vpc
Endpoint stringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway.
- vpc_
id string - ID of the VPC in which the endpoint will be used.
- auto_
accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- dns_
options object - DNS options for the endpoint. See
dnsOptionsbelow. - ip_
address_ stringtype - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - private_
dns_ boolenabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource_
configuration_ stringarn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route_
table_ list(string)ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security_
group_ list(string)ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service_
name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
network_ stringarn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - subnet_
configurations list(object) - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet_
ids list(string) - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - map(string)
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc_
endpoint_ stringtype - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway.
- vpc
Id String - ID of the VPC in which the endpoint will be used.
- auto
Accept Boolean - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- dns
Options VpcEndpoint Dns Options - DNS options for the endpoint. See
dnsOptionsbelow. - ip
Address StringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - policy String
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - private
Dns BooleanEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Configuration StringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route
Table List<String>Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security
Group List<String>Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service
Name String - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Network StringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Region String - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - subnet
Configurations List<VpcEndpoint Subnet Configuration> - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet
Ids List<String> - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc
Endpoint StringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway.
- vpc
Id string - ID of the VPC in which the endpoint will be used.
- auto
Accept boolean - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- dns
Options VpcEndpoint Dns Options - DNS options for the endpoint. See
dnsOptionsbelow. - ip
Address stringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - private
Dns booleanEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Configuration stringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route
Table string[]Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security
Group string[]Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service
Name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Network stringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - subnet
Configurations VpcEndpoint Subnet Configuration[] - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet
Ids string[] - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc
Endpoint stringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway.
- vpc_
id str - ID of the VPC in which the endpoint will be used.
- auto_
accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- dns_
options VpcEndpoint Dns Options Args - DNS options for the endpoint. See
dnsOptionsbelow. - ip_
address_ strtype - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - policy str
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - private_
dns_ boolenabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource_
configuration_ strarn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route_
table_ Sequence[str]ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security_
group_ Sequence[str]ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service_
name str - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
network_ strarn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
region str - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - subnet_
configurations Sequence[VpcEndpoint Subnet Configuration Args] - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet_
ids Sequence[str] - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc_
endpoint_ strtype - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway.
- vpc
Id String - ID of the VPC in which the endpoint will be used.
- auto
Accept Boolean - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- dns
Options Property Map - DNS options for the endpoint. See
dnsOptionsbelow. - ip
Address StringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - policy String
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - private
Dns BooleanEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Configuration StringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route
Table List<String>Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security
Group List<String>Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service
Name String - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Network StringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Region String - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - subnet
Configurations List<Property Map> - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet
Ids List<String> - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Map<String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc
Endpoint StringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcEndpoint resource produces the following output properties:
- Arn string
- ARN of the VPC endpoint.
- Cidr
Blocks List<string> - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - Dns
Entries List<VpcEndpoint Dns Entry> - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface List<string>Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - Owner
Id string - ID of the AWS account that owns the VPC endpoint.
- Prefix
List stringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - Requester
Managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - State string
- State of the VPC endpoint.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the VPC endpoint.
- Cidr
Blocks []string - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - Dns
Entries []VpcEndpoint Dns Entry - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface []stringIds - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - Owner
Id string - ID of the AWS account that owns the VPC endpoint.
- Prefix
List stringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - Requester
Managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - State string
- State of the VPC endpoint.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the VPC endpoint.
- cidr_
blocks list(string) - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns_
entries list(object) - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - id string
- The provider-assigned unique ID for this managed resource.
- network_
interface_ list(string)ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner_
id string - ID of the AWS account that owns the VPC endpoint.
- prefix_
list_ stringid - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - requester_
managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - state string
- State of the VPC endpoint.
- map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the VPC endpoint.
- cidr
Blocks List<String> - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns
Entries List<VpcEndpoint Dns Entry> - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - id String
- The provider-assigned unique ID for this managed resource.
- network
Interface List<String>Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner
Id String - ID of the AWS account that owns the VPC endpoint.
- prefix
List StringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - requester
Managed Boolean - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - state String
- State of the VPC endpoint.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the VPC endpoint.
- cidr
Blocks string[] - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns
Entries VpcEndpoint Dns Entry[] - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - id string
- The provider-assigned unique ID for this managed resource.
- network
Interface string[]Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner
Id string - ID of the AWS account that owns the VPC endpoint.
- prefix
List stringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - requester
Managed boolean - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - state string
- State of the VPC endpoint.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the VPC endpoint.
- cidr_
blocks Sequence[str] - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns_
entries Sequence[VpcEndpoint Dns Entry] - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - id str
- The provider-assigned unique ID for this managed resource.
- network_
interface_ Sequence[str]ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner_
id str - ID of the AWS account that owns the VPC endpoint.
- prefix_
list_ strid - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - requester_
managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - state str
- State of the VPC endpoint.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the VPC endpoint.
- cidr
Blocks List<String> - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns
Entries List<Property Map> - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - id String
- The provider-assigned unique ID for this managed resource.
- network
Interface List<String>Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner
Id String - ID of the AWS account that owns the VPC endpoint.
- prefix
List StringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - requester
Managed Boolean - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - state String
- State of the VPC endpoint.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Look up Existing VpcEndpoint Resource
Get an existing VpcEndpoint 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?: VpcEndpointState, opts?: CustomResourceOptions): VpcEndpoint@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
auto_accept: Optional[bool] = None,
cidr_blocks: Optional[Sequence[str]] = None,
dns_entries: Optional[Sequence[VpcEndpointDnsEntryArgs]] = None,
dns_options: Optional[VpcEndpointDnsOptionsArgs] = None,
ip_address_type: Optional[str] = None,
network_interface_ids: Optional[Sequence[str]] = None,
owner_id: Optional[str] = None,
policy: Optional[str] = None,
prefix_list_id: Optional[str] = None,
private_dns_enabled: Optional[bool] = None,
region: Optional[str] = None,
requester_managed: Optional[bool] = None,
resource_configuration_arn: Optional[str] = None,
route_table_ids: Optional[Sequence[str]] = None,
security_group_ids: Optional[Sequence[str]] = None,
service_name: Optional[str] = None,
service_network_arn: Optional[str] = None,
service_region: Optional[str] = None,
state: Optional[str] = None,
subnet_configurations: Optional[Sequence[VpcEndpointSubnetConfigurationArgs]] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
vpc_endpoint_type: Optional[str] = None,
vpc_id: Optional[str] = None) -> VpcEndpointfunc GetVpcEndpoint(ctx *Context, name string, id IDInput, state *VpcEndpointState, opts ...ResourceOption) (*VpcEndpoint, error)public static VpcEndpoint Get(string name, Input<string> id, VpcEndpointState? state, CustomResourceOptions? opts = null)public static VpcEndpoint get(String name, Output<String> id, VpcEndpointState state, CustomResourceOptions options)resources: _: type: aws:ec2:VpcEndpoint get: id: ${id}import {
to = aws_ec2_vpc_endpoint.example
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.
- Arn string
- ARN of the VPC endpoint.
- Auto
Accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- Cidr
Blocks List<string> - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - Dns
Entries List<VpcEndpoint Dns Entry> - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - Dns
Options VpcEndpoint Dns Options - DNS options for the endpoint. See
dnsOptionsbelow. - Ip
Address stringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - Network
Interface List<string>Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - Owner
Id string - ID of the AWS account that owns the VPC endpoint.
- Policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - Prefix
List stringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - Private
Dns boolEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Requester
Managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - Resource
Configuration stringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - Route
Table List<string>Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - Security
Group List<string>Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - Service
Name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Network stringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - State string
- State of the VPC endpoint.
- Subnet
Configurations List<VpcEndpoint Subnet Configuration> - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- Subnet
Ids List<string> - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Vpc
Endpoint stringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway. - Vpc
Id string - ID of the VPC in which the endpoint will be used.
- Arn string
- ARN of the VPC endpoint.
- Auto
Accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- Cidr
Blocks []string - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - Dns
Entries []VpcEndpoint Dns Entry Args - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - Dns
Options VpcEndpoint Dns Options Args - DNS options for the endpoint. See
dnsOptionsbelow. - Ip
Address stringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - Network
Interface []stringIds - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - Owner
Id string - ID of the AWS account that owns the VPC endpoint.
- Policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - Prefix
List stringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - Private
Dns boolEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Requester
Managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - Resource
Configuration stringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - Route
Table []stringIds - One or more route table IDs. Applicable for endpoints of type
Gateway. - Security
Group []stringIds - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - Service
Name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Network stringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - Service
Region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - State string
- State of the VPC endpoint.
- Subnet
Configurations []VpcEndpoint Subnet Configuration Args - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- Subnet
Ids []string - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - map[string]string
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Vpc
Endpoint stringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway. - Vpc
Id string - ID of the VPC in which the endpoint will be used.
- arn string
- ARN of the VPC endpoint.
- auto_
accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- cidr_
blocks list(string) - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns_
entries list(object) - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - dns_
options object - DNS options for the endpoint. See
dnsOptionsbelow. - ip_
address_ stringtype - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - network_
interface_ list(string)ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner_
id string - ID of the AWS account that owns the VPC endpoint.
- policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - prefix_
list_ stringid - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - private_
dns_ boolenabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requester_
managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - resource_
configuration_ stringarn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route_
table_ list(string)ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security_
group_ list(string)ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service_
name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
network_ stringarn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - state string
- State of the VPC endpoint.
- subnet_
configurations list(object) - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet_
ids list(string) - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - map(string)
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - vpc_
endpoint_ stringtype - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway. - vpc_
id string - ID of the VPC in which the endpoint will be used.
- arn String
- ARN of the VPC endpoint.
- auto
Accept Boolean - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- cidr
Blocks List<String> - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns
Entries List<VpcEndpoint Dns Entry> - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - dns
Options VpcEndpoint Dns Options - DNS options for the endpoint. See
dnsOptionsbelow. - ip
Address StringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - network
Interface List<String>Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner
Id String - ID of the AWS account that owns the VPC endpoint.
- policy String
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - prefix
List StringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - private
Dns BooleanEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requester
Managed Boolean - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - resource
Configuration StringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route
Table List<String>Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security
Group List<String>Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service
Name String - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Network StringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Region String - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - state String
- State of the VPC endpoint.
- subnet
Configurations List<VpcEndpoint Subnet Configuration> - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet
Ids List<String> - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - vpc
Endpoint StringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway. - vpc
Id String - ID of the VPC in which the endpoint will be used.
- arn string
- ARN of the VPC endpoint.
- auto
Accept boolean - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- cidr
Blocks string[] - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns
Entries VpcEndpoint Dns Entry[] - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - dns
Options VpcEndpoint Dns Options - DNS options for the endpoint. See
dnsOptionsbelow. - ip
Address stringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - network
Interface string[]Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner
Id string - ID of the AWS account that owns the VPC endpoint.
- policy string
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - prefix
List stringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - private
Dns booleanEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requester
Managed boolean - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - resource
Configuration stringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route
Table string[]Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security
Group string[]Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service
Name string - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Network stringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Region string - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - state string
- State of the VPC endpoint.
- subnet
Configurations VpcEndpoint Subnet Configuration[] - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet
Ids string[] - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - vpc
Endpoint stringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway. - vpc
Id string - ID of the VPC in which the endpoint will be used.
- arn str
- ARN of the VPC endpoint.
- auto_
accept bool - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- cidr_
blocks Sequence[str] - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns_
entries Sequence[VpcEndpoint Dns Entry Args] - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - dns_
options VpcEndpoint Dns Options Args - DNS options for the endpoint. See
dnsOptionsbelow. - ip_
address_ strtype - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - network_
interface_ Sequence[str]ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner_
id str - ID of the AWS account that owns the VPC endpoint.
- policy str
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - prefix_
list_ strid - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - private_
dns_ boolenabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requester_
managed bool - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - resource_
configuration_ strarn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route_
table_ Sequence[str]ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security_
group_ Sequence[str]ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service_
name str - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
network_ strarn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service_
region str - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - state str
- State of the VPC endpoint.
- subnet_
configurations Sequence[VpcEndpoint Subnet Configuration Args] - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet_
ids Sequence[str] - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - vpc_
endpoint_ strtype - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway. - vpc_
id str - ID of the VPC in which the endpoint will be used.
- arn String
- ARN of the VPC endpoint.
- auto
Accept Boolean - Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
- cidr
Blocks List<String> - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type
Gateway. - dns
Entries List<Property Map> - DNS entries for the VPC Endpoint. Applicable for endpoints of type
Interface. SeednsEntrybelow. - dns
Options Property Map - DNS options for the endpoint. See
dnsOptionsbelow. - ip
Address StringType - IP address type for the endpoint. Valid values are
ipv4,dualstack, andipv6. - network
Interface List<String>Ids - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type
Interface. - owner
Id String - ID of the AWS account that owns the VPC endpoint.
- policy String
- Policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All
Gatewayand someInterfaceendpoints support policies - see the relevant AWS documentation for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide. - prefix
List StringId - Prefix list ID of the exposed AWS service. Applicable for endpoints of type
Gateway. - private
Dns BooleanEnabled - Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. Applicable for endpoints of type
Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults tofalse. IfvpcEndpointTypeis anything other thanInterface, changing this value forces a new resource to be created. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requester
Managed Boolean - Whether or not the VPC Endpoint is being managed by its service -
trueorfalse. - resource
Configuration StringArn - ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. Applicable for endpoints of typeResourceandTunnel. ForTunnelendpoints, the resource configuration must be of typeCIDR. - route
Table List<String>Ids - One or more route table IDs. Applicable for endpoints of type
Gateway. - security
Group List<String>Ids - ID of one or more security groups to associate with the network interface. Applicable for endpoints of type
Interface,Resource,ServiceNetwork, andTunnel. If no security groups are specified, the VPC's default security group is associated with the endpoint. - service
Name String - Service name. For AWS services the service name is usually in the form
com.amazonaws.<region>.<service>(the SageMaker AI Notebook service is an exception to this rule, the service name is in the formaws.sagemaker.<region>.notebook). Exactly one ofresourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Network StringArn - ARN of a Service Network to connect this VPC Endpoint to. Exactly one of
resourceConfigurationArn,serviceNameorserviceNetworkArnis required. - service
Region String - AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type
Interface. - state String
- State of the VPC endpoint.
- subnet
Configurations List<Property Map> - Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.
- subnet
Ids List<String> - ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type
GatewayLoadBalancer,Interface,Resource,ServiceNetwork, andTunnel. Interface type endpoints cannot function without being assigned to a subnet. ForTunnelendpoints, the subnets must be in the Availability Zones of the resource gateway associated with the resource configuration. - Map<String>
- Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - vpc
Endpoint StringType - VPC endpoint type,
Gateway,GatewayLoadBalancer,Interface,Resource,ServiceNetworkorTunnel. Defaults toGateway. - vpc
Id String - ID of the VPC in which the endpoint will be used.
Supporting Types
VpcEndpointDnsEntry, VpcEndpointDnsEntryArgs
- Dns
Name string - DNS name.
- Hosted
Zone stringId - ID of the private hosted zone.
- Dns
Name string - DNS name.
- Hosted
Zone stringId - ID of the private hosted zone.
- dns_
name string - DNS name.
- hosted_
zone_ stringid - ID of the private hosted zone.
- dns
Name String - DNS name.
- hosted
Zone StringId - ID of the private hosted zone.
- dns
Name string - DNS name.
- hosted
Zone stringId - ID of the private hosted zone.
- dns_
name str - DNS name.
- hosted_
zone_ strid - ID of the private hosted zone.
- dns
Name String - DNS name.
- hosted
Zone StringId - ID of the private hosted zone.
VpcEndpointDnsOptions, VpcEndpointDnsOptionsArgs
- Dns
Record stringIp Type - DNS records created for the endpoint. Valid values are
ipv4,dualstack,service-defined, andipv6. - Private
Dns boolOnly For Inbound Resolver Endpoint - Whether to enable private DNS only for inbound endpoints. This option is available only for interface endpoints of services that support both gateway and interface endpoints. A gateway endpoint for the same service must be created before an interface endpoint is created. Traffic originating from the VPC is routed to the gateway endpoint, while traffic originating from on-premises is routed to the interface endpoint. Defaults to
false. This argument can be specified only ifprivateDnsEnabledistrue. - Private
Dns stringPreference - Preference for which private domains have a private hosted zone created for and associated with the specified VPC. Valid values are
ALL_DOMAINS,VERIFIED_DOMAINS_ONLY,VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS, andSPECIFIED_DOMAINS_ONLY. Only supported whenprivateDnsEnabledistrueand when thevpcEndpointTypeisServiceNetworkorResource. - Private
Dns List<string>Specified Domains - List of private domains to create private hosted zones for and associate with the specified VPC. Must be specified when
privateDnsEnabledistrueandprivateDnsPreferenceis set to eitherVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY. In all other cases, this argument must not be specified.
- Dns
Record stringIp Type - DNS records created for the endpoint. Valid values are
ipv4,dualstack,service-defined, andipv6. - Private
Dns boolOnly For Inbound Resolver Endpoint - Whether to enable private DNS only for inbound endpoints. This option is available only for interface endpoints of services that support both gateway and interface endpoints. A gateway endpoint for the same service must be created before an interface endpoint is created. Traffic originating from the VPC is routed to the gateway endpoint, while traffic originating from on-premises is routed to the interface endpoint. Defaults to
false. This argument can be specified only ifprivateDnsEnabledistrue. - Private
Dns stringPreference - Preference for which private domains have a private hosted zone created for and associated with the specified VPC. Valid values are
ALL_DOMAINS,VERIFIED_DOMAINS_ONLY,VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS, andSPECIFIED_DOMAINS_ONLY. Only supported whenprivateDnsEnabledistrueand when thevpcEndpointTypeisServiceNetworkorResource. - Private
Dns []stringSpecified Domains - List of private domains to create private hosted zones for and associate with the specified VPC. Must be specified when
privateDnsEnabledistrueandprivateDnsPreferenceis set to eitherVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY. In all other cases, this argument must not be specified.
- dns_
record_ stringip_ type - DNS records created for the endpoint. Valid values are
ipv4,dualstack,service-defined, andipv6. - private_
dns_ boolonly_ for_ inbound_ resolver_ endpoint - Whether to enable private DNS only for inbound endpoints. This option is available only for interface endpoints of services that support both gateway and interface endpoints. A gateway endpoint for the same service must be created before an interface endpoint is created. Traffic originating from the VPC is routed to the gateway endpoint, while traffic originating from on-premises is routed to the interface endpoint. Defaults to
false. This argument can be specified only ifprivateDnsEnabledistrue. - private_
dns_ stringpreference - Preference for which private domains have a private hosted zone created for and associated with the specified VPC. Valid values are
ALL_DOMAINS,VERIFIED_DOMAINS_ONLY,VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS, andSPECIFIED_DOMAINS_ONLY. Only supported whenprivateDnsEnabledistrueand when thevpcEndpointTypeisServiceNetworkorResource. - private_
dns_ list(string)specified_ domains - List of private domains to create private hosted zones for and associate with the specified VPC. Must be specified when
privateDnsEnabledistrueandprivateDnsPreferenceis set to eitherVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY. In all other cases, this argument must not be specified.
- dns
Record StringIp Type - DNS records created for the endpoint. Valid values are
ipv4,dualstack,service-defined, andipv6. - private
Dns BooleanOnly For Inbound Resolver Endpoint - Whether to enable private DNS only for inbound endpoints. This option is available only for interface endpoints of services that support both gateway and interface endpoints. A gateway endpoint for the same service must be created before an interface endpoint is created. Traffic originating from the VPC is routed to the gateway endpoint, while traffic originating from on-premises is routed to the interface endpoint. Defaults to
false. This argument can be specified only ifprivateDnsEnabledistrue. - private
Dns StringPreference - Preference for which private domains have a private hosted zone created for and associated with the specified VPC. Valid values are
ALL_DOMAINS,VERIFIED_DOMAINS_ONLY,VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS, andSPECIFIED_DOMAINS_ONLY. Only supported whenprivateDnsEnabledistrueand when thevpcEndpointTypeisServiceNetworkorResource. - private
Dns List<String>Specified Domains - List of private domains to create private hosted zones for and associate with the specified VPC. Must be specified when
privateDnsEnabledistrueandprivateDnsPreferenceis set to eitherVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY. In all other cases, this argument must not be specified.
- dns
Record stringIp Type - DNS records created for the endpoint. Valid values are
ipv4,dualstack,service-defined, andipv6. - private
Dns booleanOnly For Inbound Resolver Endpoint - Whether to enable private DNS only for inbound endpoints. This option is available only for interface endpoints of services that support both gateway and interface endpoints. A gateway endpoint for the same service must be created before an interface endpoint is created. Traffic originating from the VPC is routed to the gateway endpoint, while traffic originating from on-premises is routed to the interface endpoint. Defaults to
false. This argument can be specified only ifprivateDnsEnabledistrue. - private
Dns stringPreference - Preference for which private domains have a private hosted zone created for and associated with the specified VPC. Valid values are
ALL_DOMAINS,VERIFIED_DOMAINS_ONLY,VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS, andSPECIFIED_DOMAINS_ONLY. Only supported whenprivateDnsEnabledistrueand when thevpcEndpointTypeisServiceNetworkorResource. - private
Dns string[]Specified Domains - List of private domains to create private hosted zones for and associate with the specified VPC. Must be specified when
privateDnsEnabledistrueandprivateDnsPreferenceis set to eitherVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY. In all other cases, this argument must not be specified.
- dns_
record_ strip_ type - DNS records created for the endpoint. Valid values are
ipv4,dualstack,service-defined, andipv6. - private_
dns_ boolonly_ for_ inbound_ resolver_ endpoint - Whether to enable private DNS only for inbound endpoints. This option is available only for interface endpoints of services that support both gateway and interface endpoints. A gateway endpoint for the same service must be created before an interface endpoint is created. Traffic originating from the VPC is routed to the gateway endpoint, while traffic originating from on-premises is routed to the interface endpoint. Defaults to
false. This argument can be specified only ifprivateDnsEnabledistrue. - private_
dns_ strpreference - Preference for which private domains have a private hosted zone created for and associated with the specified VPC. Valid values are
ALL_DOMAINS,VERIFIED_DOMAINS_ONLY,VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS, andSPECIFIED_DOMAINS_ONLY. Only supported whenprivateDnsEnabledistrueand when thevpcEndpointTypeisServiceNetworkorResource. - private_
dns_ Sequence[str]specified_ domains - List of private domains to create private hosted zones for and associate with the specified VPC. Must be specified when
privateDnsEnabledistrueandprivateDnsPreferenceis set to eitherVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY. In all other cases, this argument must not be specified.
- dns
Record StringIp Type - DNS records created for the endpoint. Valid values are
ipv4,dualstack,service-defined, andipv6. - private
Dns BooleanOnly For Inbound Resolver Endpoint - Whether to enable private DNS only for inbound endpoints. This option is available only for interface endpoints of services that support both gateway and interface endpoints. A gateway endpoint for the same service must be created before an interface endpoint is created. Traffic originating from the VPC is routed to the gateway endpoint, while traffic originating from on-premises is routed to the interface endpoint. Defaults to
false. This argument can be specified only ifprivateDnsEnabledistrue. - private
Dns StringPreference - Preference for which private domains have a private hosted zone created for and associated with the specified VPC. Valid values are
ALL_DOMAINS,VERIFIED_DOMAINS_ONLY,VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS, andSPECIFIED_DOMAINS_ONLY. Only supported whenprivateDnsEnabledistrueand when thevpcEndpointTypeisServiceNetworkorResource. - private
Dns List<String>Specified Domains - List of private domains to create private hosted zones for and associate with the specified VPC. Must be specified when
privateDnsEnabledistrueandprivateDnsPreferenceis set to eitherVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY. In all other cases, this argument must not be specified.
VpcEndpointSubnetConfiguration, VpcEndpointSubnetConfigurationArgs
- Ipv4 string
- IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
- Ipv6 string
- IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
- Subnet
Id string - ID of the subnet. Must have a corresponding subnet in the
subnetIdsargument.
- Ipv4 string
- IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
- Ipv6 string
- IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
- Subnet
Id string - ID of the subnet. Must have a corresponding subnet in the
subnetIdsargument.
- ipv4 string
- IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
- ipv6 string
- IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
- subnet_
id string - ID of the subnet. Must have a corresponding subnet in the
subnetIdsargument.
- ipv4 String
- IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
- ipv6 String
- IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
- subnet
Id String - ID of the subnet. Must have a corresponding subnet in the
subnetIdsargument.
- ipv4 string
- IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
- ipv6 string
- IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
- subnet
Id string - ID of the subnet. Must have a corresponding subnet in the
subnetIdsargument.
- ipv4 str
- IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
- ipv6 str
- IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
- subnet_
id str - ID of the subnet. Must have a corresponding subnet in the
subnetIdsargument.
- ipv4 String
- IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
- ipv6 String
- IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
- subnet
Id String - ID of the subnet. Must have a corresponding subnet in the
subnetIdsargument.
Import
Identity Schema
Required
id- (String) ID of the VPC endpoint.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import VPC Endpoints using the VPC endpoint id. For example:
$ pulumi import aws:ec2/vpcEndpoint:VpcEndpoint example vpce-3ecf2a57
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Monday, Nov 2, 2026 by Pulumi