ServerlessVpcEndpointArgs

data class ServerlessVpcEndpointArgs(val name: Output<String>? = null, val securityGroupIds: Output<List<String>>? = null, val subnetIds: Output<List<String>>? = null, val timeouts: Output<ServerlessVpcEndpointTimeoutsArgs>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<ServerlessVpcEndpointArgs>

Resource for managing an AWS OpenSearchServerless VPC Endpoint.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.opensearch.ServerlessVpcEndpoint("example", {
name: "myendpoint",
subnetIds: [exampleAwsSubnet&#46;id],
vpcId: exampleAwsVpc.id,
});
import pulumi
import pulumi_aws as aws
example = aws.opensearch.ServerlessVpcEndpoint("example",
name="myendpoint",
subnet_ids=[example_aws_subnet["id"]],
vpc_id=example_aws_vpc["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.OpenSearch.ServerlessVpcEndpoint("example", new()
{
Name = "myendpoint",
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
VpcId = exampleAwsVpc.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opensearch.NewServerlessVpcEndpoint(ctx, "example", &opensearch.ServerlessVpcEndpointArgs{
Name: pulumi.String("myendpoint"),
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
VpcId: pulumi.Any(exampleAwsVpc.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opensearch.ServerlessVpcEndpoint;
import com.pulumi.aws.opensearch.ServerlessVpcEndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ServerlessVpcEndpoint("example", ServerlessVpcEndpointArgs.builder()
.name("myendpoint")
.subnetIds(exampleAwsSubnet.id())
.vpcId(exampleAwsVpc.id())
.build());
}
}
resources:
example:
type: aws:opensearch:ServerlessVpcEndpoint
properties:
name: myendpoint
subnetIds:
- ${exampleAwsSubnet.id}
vpcId: ${exampleAwsVpc.id}

Import

Using pulumi import, import OpenSearchServerless Vpc Endpointa using the id. For example:

$ pulumi import aws:opensearch/serverlessVpcEndpoint:ServerlessVpcEndpoint example vpce-8012925589

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, securityGroupIds: Output<List<String>>? = null, subnetIds: Output<List<String>>? = null, timeouts: Output<ServerlessVpcEndpointTimeoutsArgs>? = null, vpcId: Output<String>? = null)

Properties

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

Name of the interface endpoint.

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

One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided.

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

One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided.

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

ID of the VPC from which you'll access OpenSearch Serverless. The following arguments are optional:

Functions

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