/
getPrivateEndpointInterfaceLink.go
48 lines (43 loc) · 2.39 KB
/
getPrivateEndpointInterfaceLink.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package mongodbatlas
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// `PrivateEndpointInterfaceLink` describe a Private Endpoint Link. This represents a Private Endpoint Link Connection that wants to retrieve details in an Atlas project.
//
// !> **WARNING:** This datasource is deprecated and will be removed in the next major version
// Please transition to privatelinkEndpointService as soon as possible. [PrivateLink Endpoint Service](https://docs.atlas.mongodb.com/reference/api/private-endpoints-endpoint-get-one/)
//
// > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation.
func LookupPrivateEndpointInterfaceLink(ctx *pulumi.Context, args *LookupPrivateEndpointInterfaceLinkArgs, opts ...pulumi.InvokeOption) (*LookupPrivateEndpointInterfaceLinkResult, error) {
var rv LookupPrivateEndpointInterfaceLinkResult
err := ctx.Invoke("mongodbatlas:index/getPrivateEndpointInterfaceLink:getPrivateEndpointInterfaceLink", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getPrivateEndpointInterfaceLink.
type LookupPrivateEndpointInterfaceLinkArgs struct {
InterfaceEndpointId string `pulumi:"interfaceEndpointId"`
// Unique identifier of the AWS PrivateLink connection.
PrivateLinkId string `pulumi:"privateLinkId"`
// Unique identifier for the project.
ProjectId string `pulumi:"projectId"`
}
// A collection of values returned by getPrivateEndpointInterfaceLink.
type LookupPrivateEndpointInterfaceLinkResult struct {
// Status of the interface endpoint.
// Returns one of the following values:
ConnectionStatus string `pulumi:"connectionStatus"`
// Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
DeleteRequested bool `pulumi:"deleteRequested"`
// Error message pertaining to the interface endpoint. Returns null if there are no errors.
ErrorMessage string `pulumi:"errorMessage"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
InterfaceEndpointId string `pulumi:"interfaceEndpointId"`
PrivateLinkId string `pulumi:"privateLinkId"`
ProjectId string `pulumi:"projectId"`
}