We recommend new projects start with resources from the AWS provider.
aws-native.opensearchserverless.VpcEndpoint
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Amazon OpenSearchServerless vpc endpoint resource
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var testAOSSVpcEndpoint = new AwsNative.OpenSearchServerless.VpcEndpoint("testAOSSVpcEndpoint", new()
{
Name = "test-vpcendpoint",
VpcId = "vpc-0d728b8430292b3f4",
SubnetIds = new[]
{
"subnet-0e855f5722a9598ee",
},
SecurityGroupIds = new[]
{
"sg-03843b03f369eb245",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/opensearchserverless"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opensearchserverless.NewVpcEndpoint(ctx, "testAOSSVpcEndpoint", &opensearchserverless.VpcEndpointArgs{
Name: pulumi.String("test-vpcendpoint"),
VpcId: pulumi.String("vpc-0d728b8430292b3f4"),
SubnetIds: pulumi.StringArray{
pulumi.String("subnet-0e855f5722a9598ee"),
},
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-03843b03f369eb245"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
test_aoss_vpc_endpoint = aws_native.opensearchserverless.VpcEndpoint("testAOSSVpcEndpoint",
name="test-vpcendpoint",
vpc_id="vpc-0d728b8430292b3f4",
subnet_ids=["subnet-0e855f5722a9598ee"],
security_group_ids=["sg-03843b03f369eb245"])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const testAOSSVpcEndpoint = new aws_native.opensearchserverless.VpcEndpoint("testAOSSVpcEndpoint", {
name: "test-vpcendpoint",
vpcId: "vpc-0d728b8430292b3f4",
subnetIds: ["subnet-0e855f5722a9598ee"],
securityGroupIds: ["sg-03843b03f369eb245"],
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var testAOSSVpcEndpoint = new AwsNative.OpenSearchServerless.VpcEndpoint("testAOSSVpcEndpoint", new()
{
Name = "test-vpcendpoint",
VpcId = "vpc-0d728b8430292b3f4",
SubnetIds = new[]
{
"subnet-0e855f5722a9598ee",
},
SecurityGroupIds = new[]
{
"sg-03843b03f369eb245",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/opensearchserverless"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opensearchserverless.NewVpcEndpoint(ctx, "testAOSSVpcEndpoint", &opensearchserverless.VpcEndpointArgs{
Name: pulumi.String("test-vpcendpoint"),
VpcId: pulumi.String("vpc-0d728b8430292b3f4"),
SubnetIds: pulumi.StringArray{
pulumi.String("subnet-0e855f5722a9598ee"),
},
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-03843b03f369eb245"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
test_aoss_vpc_endpoint = aws_native.opensearchserverless.VpcEndpoint("testAOSSVpcEndpoint",
name="test-vpcendpoint",
vpc_id="vpc-0d728b8430292b3f4",
subnet_ids=["subnet-0e855f5722a9598ee"],
security_group_ids=["sg-03843b03f369eb245"])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const testAOSSVpcEndpoint = new aws_native.opensearchserverless.VpcEndpoint("testAOSSVpcEndpoint", {
name: "test-vpcendpoint",
vpcId: "vpc-0d728b8430292b3f4",
subnetIds: ["subnet-0e855f5722a9598ee"],
securityGroupIds: ["sg-03843b03f369eb245"],
});
Coming soon!
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,
subnet_ids: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
name: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = 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-native:opensearchserverless:VpcEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args 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.
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
The VpcEndpoint resource accepts the following input properties:
- Subnet
Ids List<string> - The ID of one or more subnets in which to create an endpoint network interface
- Vpc
Id string - The ID of the VPC in which the endpoint will be used.
- Name string
- The name of the VPC Endpoint
- Security
Group List<string>Ids - The ID of one or more security groups to associate with the endpoint network interface
- Subnet
Ids []string - The ID of one or more subnets in which to create an endpoint network interface
- Vpc
Id string - The ID of the VPC in which the endpoint will be used.
- Name string
- The name of the VPC Endpoint
- Security
Group []stringIds - The ID of one or more security groups to associate with the endpoint network interface
- subnet
Ids List<String> - The ID of one or more subnets in which to create an endpoint network interface
- vpc
Id String - The ID of the VPC in which the endpoint will be used.
- name String
- The name of the VPC Endpoint
- security
Group List<String>Ids - The ID of one or more security groups to associate with the endpoint network interface
- subnet
Ids string[] - The ID of one or more subnets in which to create an endpoint network interface
- vpc
Id string - The ID of the VPC in which the endpoint will be used.
- name string
- The name of the VPC Endpoint
- security
Group string[]Ids - The ID of one or more security groups to associate with the endpoint network interface
- subnet_
ids Sequence[str] - The ID of one or more subnets in which to create an endpoint network interface
- vpc_
id str - The ID of the VPC in which the endpoint will be used.
- name str
- The name of the VPC Endpoint
- security_
group_ Sequence[str]ids - The ID of one or more security groups to associate with the endpoint network interface
- subnet
Ids List<String> - The ID of one or more subnets in which to create an endpoint network interface
- vpc
Id String - The ID of the VPC in which the endpoint will be used.
- name String
- The name of the VPC Endpoint
- security
Group List<String>Ids - The ID of one or more security groups to associate with the endpoint network interface
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcEndpoint resource produces the following output properties:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.