This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getPrivateEndpointConnection.go
44 lines (39 loc) · 1.97 KB
/
getPrivateEndpointConnection.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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190801preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupPrivateEndpointConnection(ctx *pulumi.Context, args *LookupPrivateEndpointConnectionArgs, opts ...pulumi.InvokeOption) (*LookupPrivateEndpointConnectionResult, error) {
var rv LookupPrivateEndpointConnectionResult
err := ctx.Invoke("azure-nextgen:documentdb/v20190801preview:getPrivateEndpointConnection", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupPrivateEndpointConnectionArgs struct {
// Cosmos DB database account name.
AccountName string `pulumi:"accountName"`
// The name of the private endpoint connection.
PrivateEndpointConnectionName string `pulumi:"privateEndpointConnectionName"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// A private endpoint connection
type LookupPrivateEndpointConnectionResult struct {
// Group id of the private endpoint.
GroupId *string `pulumi:"groupId"`
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// The name of the resource
Name string `pulumi:"name"`
// Private endpoint which the connection belongs to.
PrivateEndpoint *PrivateEndpointPropertyResponse `pulumi:"privateEndpoint"`
// Connection State of the Private Endpoint Connection.
PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStatePropertyResponse `pulumi:"privateLinkServiceConnectionState"`
// Provisioning state of the private endpoint.
ProvisioningState *string `pulumi:"provisioningState"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type string `pulumi:"type"`
}