-
Notifications
You must be signed in to change notification settings - Fork 31
/
getPrivateEndpointConnection.ts
89 lines (82 loc) · 2.92 KB
/
getPrivateEndpointConnection.ts
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// *** 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! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
import * as utilities from "../utilities";
/**
* Private endpoint connection resource.
* API Version: 2020-03-01.
*/
export function getPrivateEndpointConnection(args: GetPrivateEndpointConnectionArgs, opts?: pulumi.InvokeOptions): Promise<GetPrivateEndpointConnectionResult> {
if (!opts) {
opts = {}
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("azure-native:aadiam:getPrivateEndpointConnection", {
"policyName": args.policyName,
"privateEndpointConnectionName": args.privateEndpointConnectionName,
"resourceGroupName": args.resourceGroupName,
}, opts);
}
export interface GetPrivateEndpointConnectionArgs {
/**
* The name of the private link policy in Azure AD.
*/
policyName: string;
/**
* The PrivateEndpointConnection name.
*/
privateEndpointConnectionName: string;
/**
* Name of an Azure resource group.
*/
resourceGroupName: string;
}
/**
* Private endpoint connection resource.
*/
export interface GetPrivateEndpointConnectionResult {
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Properties of the private endpoint object.
*/
readonly privateEndpoint?: outputs.aadiam.PrivateEndpointResponse;
/**
* Approval state of the private link connection.
*/
readonly privateLinkServiceConnectionState?: outputs.aadiam.PrivateLinkServiceConnectionStateResponse;
/**
* Provisioning state of the private endpoint connection.
*/
readonly provisioningState: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
export function getPrivateEndpointConnectionOutput(args: GetPrivateEndpointConnectionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrivateEndpointConnectionResult> {
return pulumi.output(args).apply(a => getPrivateEndpointConnection(a, opts))
}
export interface GetPrivateEndpointConnectionOutputArgs {
/**
* The name of the private link policy in Azure AD.
*/
policyName: pulumi.Input<string>;
/**
* The PrivateEndpointConnection name.
*/
privateEndpointConnectionName: pulumi.Input<string>;
/**
* Name of an Azure resource group.
*/
resourceGroupName: pulumi.Input<string>;
}