ElasticCloud (EC) v0.10.2 published on Wednesday, Oct 2, 2024 by Pulumi
ec.getGcpPrivateServiceConnectEndpoint
Explore with Pulumi AI
Use this data source to retrieve information about the GCP Private Service Connect configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ec from "@pulumi/ec";
const us-central1 = ec.getGcpPrivateServiceConnectEndpoint({
region: "us-central1",
});
import pulumi
import pulumi_ec as ec
us_central1 = ec.get_gcp_private_service_connect_endpoint(region="us-central1")
package main
import (
"github.com/pulumi/pulumi-ec/sdk/go/ec"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec.GetGcpPrivateServiceConnectEndpoint(ctx, &ec.GetGcpPrivateServiceConnectEndpointArgs{
Region: "us-central1",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ElasticCloud = Pulumi.ElasticCloud;
return await Deployment.RunAsync(() =>
{
var us_central1 = ElasticCloud.GetGcpPrivateServiceConnectEndpoint.Invoke(new()
{
Region = "us-central1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ec.EcFunctions;
import com.pulumi.ec.inputs.GetGcpPrivateServiceConnectEndpointArgs;
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 us-central1 = EcFunctions.getGcpPrivateServiceConnectEndpoint(GetGcpPrivateServiceConnectEndpointArgs.builder()
.region("us-central1")
.build());
}
}
variables:
us-central1:
fn::invoke:
Function: ec:getGcpPrivateServiceConnectEndpoint
Arguments:
region: us-central1
Using getGcpPrivateServiceConnectEndpoint
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 getGcpPrivateServiceConnectEndpoint(args: GetGcpPrivateServiceConnectEndpointArgs, opts?: InvokeOptions): Promise<GetGcpPrivateServiceConnectEndpointResult>
function getGcpPrivateServiceConnectEndpointOutput(args: GetGcpPrivateServiceConnectEndpointOutputArgs, opts?: InvokeOptions): Output<GetGcpPrivateServiceConnectEndpointResult>
def get_gcp_private_service_connect_endpoint(region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGcpPrivateServiceConnectEndpointResult
def get_gcp_private_service_connect_endpoint_output(region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGcpPrivateServiceConnectEndpointResult]
func GetGcpPrivateServiceConnectEndpoint(ctx *Context, args *GetGcpPrivateServiceConnectEndpointArgs, opts ...InvokeOption) (*GetGcpPrivateServiceConnectEndpointResult, error)
func GetGcpPrivateServiceConnectEndpointOutput(ctx *Context, args *GetGcpPrivateServiceConnectEndpointOutputArgs, opts ...InvokeOption) GetGcpPrivateServiceConnectEndpointResultOutput
> Note: This function is named GetGcpPrivateServiceConnectEndpoint
in the Go SDK.
public static class GetGcpPrivateServiceConnectEndpoint
{
public static Task<GetGcpPrivateServiceConnectEndpointResult> InvokeAsync(GetGcpPrivateServiceConnectEndpointArgs args, InvokeOptions? opts = null)
public static Output<GetGcpPrivateServiceConnectEndpointResult> Invoke(GetGcpPrivateServiceConnectEndpointInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGcpPrivateServiceConnectEndpointResult> getGcpPrivateServiceConnectEndpoint(GetGcpPrivateServiceConnectEndpointArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ec:index/getGcpPrivateServiceConnectEndpoint:getGcpPrivateServiceConnectEndpoint
arguments:
# arguments dictionary
The following arguments are supported:
- Region string
- Region to retrieve the Prive Link configuration for.
- Region string
- Region to retrieve the Prive Link configuration for.
- region String
- Region to retrieve the Prive Link configuration for.
- region string
- Region to retrieve the Prive Link configuration for.
- region str
- Region to retrieve the Prive Link configuration for.
- region String
- Region to retrieve the Prive Link configuration for.
getGcpPrivateServiceConnectEndpoint Result
The following output properties are available:
- Domain
Name string - The domain name to point towards the PSC endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region to retrieve the Prive Link configuration for.
- Service
Attachment stringUri - The service attachment URI to attach the PSC endpoint to.
- Domain
Name string - The domain name to point towards the PSC endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region to retrieve the Prive Link configuration for.
- Service
Attachment stringUri - The service attachment URI to attach the PSC endpoint to.
- domain
Name String - The domain name to point towards the PSC endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region to retrieve the Prive Link configuration for.
- service
Attachment StringUri - The service attachment URI to attach the PSC endpoint to.
- domain
Name string - The domain name to point towards the PSC endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region to retrieve the Prive Link configuration for.
- service
Attachment stringUri - The service attachment URI to attach the PSC endpoint to.
- domain_
name str - The domain name to point towards the PSC endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Region to retrieve the Prive Link configuration for.
- service_
attachment_ struri - The service attachment URI to attach the PSC endpoint to.
- domain
Name String - The domain name to point towards the PSC endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region to retrieve the Prive Link configuration for.
- service
Attachment StringUri - The service attachment URI to attach the PSC endpoint to.
Package Details
- Repository
- ec pulumi/pulumi-ec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ec
Terraform Provider.