Astra

Community
Package contributed by a community member
v1.0.25 published on Tuesday, Jun 21, 2022 by pulumiverse

getPrivateLinkEndpoints

astra.getPrivateLinkEndpoints provides a datasource that lists the private link endpoints for an Astra database.

Example Usage

using Pulumi;
using Astra = Pulumi.Astra;

class MyStack : Stack
{
    public MyStack()
    {
        var dev = Output.Create(Astra.GetPrivateLinkEndpoints.InvokeAsync(new Astra.GetPrivateLinkEndpointsArgs
        {
            DatabaseId = "8d356587-73b3-430a-9c0e-d780332e2afb",
            DatacenterId = "8d356587-73b3-430a-9c0e-d780332e2afb",
            EndpointId = "com.amazonaws.vpce.us-east-1.vpce-svc-03ac5a4b18ee480df",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-astra/sdk/go/astra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-index/sdk/go/index"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := astra.LookupPrivateLinkEndpoints(ctx, &GetPrivateLinkEndpointsArgs{
			DatabaseId:   "8d356587-73b3-430a-9c0e-d780332e2afb",
			DatacenterId: "8d356587-73b3-430a-9c0e-d780332e2afb",
			EndpointId:   "com.amazonaws.vpce.us-east-1.vpce-svc-03ac5a4b18ee480df",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var dev = Output.of(AstraFunctions.getPrivateLinkEndpoints(GetPrivateLinkEndpointsArgs.builder()
            .databaseId("8d356587-73b3-430a-9c0e-d780332e2afb")
            .datacenterId("8d356587-73b3-430a-9c0e-d780332e2afb")
            .endpointId("com.amazonaws.vpce.us-east-1.vpce-svc-03ac5a4b18ee480df")
            .build()));

    }
}
import pulumi
import pulumi_astra as astra

dev = astra.get_private_link_endpoints(database_id="8d356587-73b3-430a-9c0e-d780332e2afb",
    datacenter_id="8d356587-73b3-430a-9c0e-d780332e2afb",
    endpoint_id="com.amazonaws.vpce.us-east-1.vpce-svc-03ac5a4b18ee480df")
import * as pulumi from "@pulumi/pulumi";
import * as astra from "@pulumi/astra";

const dev = pulumi.output(astra.getPrivateLinkEndpoints({
    databaseId: "8d356587-73b3-430a-9c0e-d780332e2afb",
    datacenterId: "8d356587-73b3-430a-9c0e-d780332e2afb",
    endpointId: "com.amazonaws.vpce.us-east-1.vpce-svc-03ac5a4b18ee480df",
}));
variables:
  dev:
    Fn::Invoke:
      Function: astra:getPrivateLinkEndpoints
      Arguments:
        databaseId: 8d356587-73b3-430a-9c0e-d780332e2afb
        datacenterId: 8d356587-73b3-430a-9c0e-d780332e2afb
        endpointId: com.amazonaws.vpce.us-east-1.vpce-svc-03ac5a4b18ee480df

Using getPrivateLinkEndpoints

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 getPrivateLinkEndpoints(args: GetPrivateLinkEndpointsArgs, opts?: InvokeOptions): Promise<GetPrivateLinkEndpointsResult>
function getPrivateLinkEndpointsOutput(args: GetPrivateLinkEndpointsOutputArgs, opts?: InvokeOptions): Output<GetPrivateLinkEndpointsResult>
def get_private_link_endpoints(database_id: Optional[str] = None,
                               datacenter_id: Optional[str] = None,
                               endpoint_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetPrivateLinkEndpointsResult
def get_private_link_endpoints_output(database_id: Optional[pulumi.Input[str]] = None,
                               datacenter_id: Optional[pulumi.Input[str]] = None,
                               endpoint_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetPrivateLinkEndpointsResult]
func LookupPrivateLinkEndpoints(ctx *Context, args *LookupPrivateLinkEndpointsArgs, opts ...InvokeOption) (*LookupPrivateLinkEndpointsResult, error)
func LookupPrivateLinkEndpointsOutput(ctx *Context, args *LookupPrivateLinkEndpointsOutputArgs, opts ...InvokeOption) LookupPrivateLinkEndpointsResultOutput

> Note: This function is named LookupPrivateLinkEndpoints in the Go SDK.

public static class GetPrivateLinkEndpoints 
{
    public static Task<GetPrivateLinkEndpointsResult> InvokeAsync(GetPrivateLinkEndpointsArgs args, InvokeOptions? opts = null)
    public static Output<GetPrivateLinkEndpointsResult> Invoke(GetPrivateLinkEndpointsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrivateLinkEndpointsResult> getPrivateLinkEndpoints(GetPrivateLinkEndpointsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: astra:index/getPrivateLinkEndpoints:getPrivateLinkEndpoints
  Arguments:
    # Arguments dictionary

The following arguments are supported:

getPrivateLinkEndpoints Result

The following output properties are available:

DatabaseId string
DatacenterId string
EndpointId string
Id string

The provider-assigned unique ID for this managed resource.

Results List<Pulumiverse.Astra.Outputs.GetPrivateLinkEndpointsResult>
DatabaseId string
DatacenterId string
EndpointId string
Id string

The provider-assigned unique ID for this managed resource.

Results []GetPrivateLinkEndpointsResult
databaseId String
datacenterId String
endpointId String
id String

The provider-assigned unique ID for this managed resource.

results List<GetPrivateLinkEndpointsResult>
databaseId string
datacenterId string
endpointId string
id string

The provider-assigned unique ID for this managed resource.

results GetPrivateLinkEndpointsResult[]
database_id str
datacenter_id str
endpoint_id str
id str

The provider-assigned unique ID for this managed resource.

results Sequence[GetPrivateLinkEndpointsResult]
databaseId String
datacenterId String
endpointId String
id String

The provider-assigned unique ID for this managed resource.

results List<Property Map>

Supporting Types

GetPrivateLinkEndpointsResult

CreateTime string
Description string
EndpointId string
Status string
CreateTime string
Description string
EndpointId string
Status string
createTime String
description String
endpointId String
status String
createTime string
description string
endpointId string
status string
createTime String
description String
endpointId String
status String

Package Details

Repository
https://github.com/pulumiverse/pulumi-astra
License
Apache-2.0
Notes

This Pulumi package is based on the astra Terraform Provider.