1. Packages
  2. AWS Native
  3. API Docs
  4. opensearchserverless
  5. VpcEndpoint

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.opensearchserverless.VpcEndpoint

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const aws_nativeVpcEndpointResource = new aws_native.opensearchserverless.VpcEndpoint("aws-nativeVpcEndpointResource", {
        subnetIds: ["string"],
        vpcId: "string",
        name: "string",
        securityGroupIds: ["string"],
    });
    
    Coming soon!
    

    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:

    SubnetIds List<string>
    The ID of one or more subnets in which to create an endpoint network interface
    VpcId string
    The ID of the VPC in which the endpoint will be used.
    Name string
    The name of the VPC Endpoint
    SecurityGroupIds List<string>
    The ID of one or more security groups to associate with the endpoint network interface
    SubnetIds []string
    The ID of one or more subnets in which to create an endpoint network interface
    VpcId string
    The ID of the VPC in which the endpoint will be used.
    Name string
    The name of the VPC Endpoint
    SecurityGroupIds []string
    The ID of one or more security groups to associate with the endpoint network interface
    subnetIds List<String>
    The ID of one or more subnets in which to create an endpoint network interface
    vpcId String
    The ID of the VPC in which the endpoint will be used.
    name String
    The name of the VPC Endpoint
    securityGroupIds List<String>
    The ID of one or more security groups to associate with the endpoint network interface
    subnetIds string[]
    The ID of one or more subnets in which to create an endpoint network interface
    vpcId string
    The ID of the VPC in which the endpoint will be used.
    name string
    The name of the VPC Endpoint
    securityGroupIds string[]
    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_ids Sequence[str]
    The ID of one or more security groups to associate with the endpoint network interface
    subnetIds List<String>
    The ID of one or more subnets in which to create an endpoint network interface
    vpcId String
    The ID of the VPC in which the endpoint will be used.
    name String
    The name of the VPC Endpoint
    securityGroupIds List<String>
    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:

    AwsId string
    The identifier of the VPC Endpoint
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsId string
    The identifier of the VPC Endpoint
    Id string
    The provider-assigned unique ID for this managed resource.
    awsId String
    The identifier of the VPC Endpoint
    id String
    The provider-assigned unique ID for this managed resource.
    awsId string
    The identifier of the VPC Endpoint
    id string
    The provider-assigned unique ID for this managed resource.
    aws_id str
    The identifier of the VPC Endpoint
    id str
    The provider-assigned unique ID for this managed resource.
    awsId String
    The identifier of the VPC Endpoint
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi