AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.opensearch.getServerlessVpcEndpoint
Explore with Pulumi AI
Data source for managing an AWS OpenSearch Serverless VPC Endpoint.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.opensearch.getServerlessVpcEndpoint({
vpcEndpointId: "vpce-829a4487959e2a839",
});
import pulumi
import pulumi_aws as aws
example = aws.opensearch.get_serverless_vpc_endpoint(vpc_endpoint_id="vpce-829a4487959e2a839")
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.LookupServerlessVpcEndpoint(ctx, &opensearch.LookupServerlessVpcEndpointArgs{
VpcEndpointId: "vpce-829a4487959e2a839",
}, nil)
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 = Aws.OpenSearch.GetServerlessVpcEndpoint.Invoke(new()
{
VpcEndpointId = "vpce-829a4487959e2a839",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opensearch.OpensearchFunctions;
import com.pulumi.aws.opensearch.inputs.GetServerlessVpcEndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = OpensearchFunctions.getServerlessVpcEndpoint(GetServerlessVpcEndpointArgs.builder()
.vpcEndpointId("vpce-829a4487959e2a839")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:opensearch:getServerlessVpcEndpoint
Arguments:
vpcEndpointId: vpce-829a4487959e2a839
Using getServerlessVpcEndpoint
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServerlessVpcEndpoint(args: GetServerlessVpcEndpointArgs, opts?: InvokeOptions): Promise<GetServerlessVpcEndpointResult>
function getServerlessVpcEndpointOutput(args: GetServerlessVpcEndpointOutputArgs, opts?: InvokeOptions): Output<GetServerlessVpcEndpointResult>
def get_serverless_vpc_endpoint(vpc_endpoint_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerlessVpcEndpointResult
def get_serverless_vpc_endpoint_output(vpc_endpoint_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerlessVpcEndpointResult]
func LookupServerlessVpcEndpoint(ctx *Context, args *LookupServerlessVpcEndpointArgs, opts ...InvokeOption) (*LookupServerlessVpcEndpointResult, error)
func LookupServerlessVpcEndpointOutput(ctx *Context, args *LookupServerlessVpcEndpointOutputArgs, opts ...InvokeOption) LookupServerlessVpcEndpointResultOutput
> Note: This function is named LookupServerlessVpcEndpoint
in the Go SDK.
public static class GetServerlessVpcEndpoint
{
public static Task<GetServerlessVpcEndpointResult> InvokeAsync(GetServerlessVpcEndpointArgs args, InvokeOptions? opts = null)
public static Output<GetServerlessVpcEndpointResult> Invoke(GetServerlessVpcEndpointInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServerlessVpcEndpointResult> getServerlessVpcEndpoint(GetServerlessVpcEndpointArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:opensearch/getServerlessVpcEndpoint:getServerlessVpcEndpoint
arguments:
# arguments dictionary
The following arguments are supported:
- Vpc
Endpoint stringId - The unique identifier of the endpoint.
- Vpc
Endpoint stringId - The unique identifier of the endpoint.
- vpc
Endpoint StringId - The unique identifier of the endpoint.
- vpc
Endpoint stringId - The unique identifier of the endpoint.
- vpc_
endpoint_ strid - The unique identifier of the endpoint.
- vpc
Endpoint StringId - The unique identifier of the endpoint.
getServerlessVpcEndpoint Result
The following output properties are available:
- Created
Date string - The date the endpoint was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the endpoint.
- Security
Group List<string>Ids - The IDs of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- Subnet
Ids List<string> - The IDs of the subnets from which you access OpenSearch Serverless.
- Vpc
Endpoint stringId - Vpc
Id string - The ID of the VPC from which you access OpenSearch Serverless.
- Created
Date string - The date the endpoint was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the endpoint.
- Security
Group []stringIds - The IDs of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- Subnet
Ids []string - The IDs of the subnets from which you access OpenSearch Serverless.
- Vpc
Endpoint stringId - Vpc
Id string - The ID of the VPC from which you access OpenSearch Serverless.
- created
Date String - The date the endpoint was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the endpoint.
- security
Group List<String>Ids - The IDs of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- subnet
Ids List<String> - The IDs of the subnets from which you access OpenSearch Serverless.
- vpc
Endpoint StringId - vpc
Id String - The ID of the VPC from which you access OpenSearch Serverless.
- created
Date string - The date the endpoint was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the endpoint.
- security
Group string[]Ids - The IDs of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- subnet
Ids string[] - The IDs of the subnets from which you access OpenSearch Serverless.
- vpc
Endpoint stringId - vpc
Id string - The ID of the VPC from which you access OpenSearch Serverless.
- created_
date str - The date the endpoint was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the endpoint.
- security_
group_ Sequence[str]ids - The IDs of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- subnet_
ids Sequence[str] - The IDs of the subnets from which you access OpenSearch Serverless.
- vpc_
endpoint_ strid - vpc_
id str - The ID of the VPC from which you access OpenSearch Serverless.
- created
Date String - The date the endpoint was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the endpoint.
- security
Group List<String>Ids - The IDs of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- subnet
Ids List<String> - The IDs of the subnets from which you access OpenSearch Serverless.
- vpc
Endpoint StringId - vpc
Id String - The ID of the VPC from which you access OpenSearch Serverless.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.