-
Notifications
You must be signed in to change notification settings - Fork 50
/
getLab.ts
104 lines (98 loc) · 2.97 KB
/
getLab.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// *** 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! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilities from "../utilities";
/**
* Use this data source to access information about an existing Dev Test Lab.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
*
* const test = azure.devtest.getLab({
* name: "example-lab",
* resourceGroupName: "example-resources",
* });
*
* export const uniqueIdentifier = test.uniqueIdentifier;
* ```
*
* > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/dev_test_lab.html.markdown.
*/
export function getLab(args: GetLabArgs, opts?: pulumi.InvokeOptions): Promise<GetLabResult> & GetLabResult {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
const promise: Promise<GetLabResult> = pulumi.runtime.invoke("azure:devtest/getLab:getLab", {
"name": args.name,
"resourceGroupName": args.resourceGroupName,
}, opts);
return pulumi.utils.liftProperties(promise, opts);
}
/**
* A collection of arguments for invoking getLab.
*/
export interface GetLabArgs {
/**
* The name of the Dev Test Lab.
*/
readonly name: string;
/**
* The Name of the Resource Group where the Dev Test Lab exists.
*/
readonly resourceGroupName: string;
}
/**
* A collection of values returned by getLab.
*/
export interface GetLabResult {
/**
* The ID of the Storage Account used for Artifact Storage.
*/
readonly artifactsStorageAccountId: string;
/**
* The ID of the Default Premium Storage Account for this Dev Test Lab.
*/
readonly defaultPremiumStorageAccountId: string;
/**
* The ID of the Default Storage Account for this Dev Test Lab.
*/
readonly defaultStorageAccountId: string;
/**
* The ID of the Key used for this Dev Test Lab.
*/
readonly keyVaultId: string;
/**
* The Azure location where the Dev Test Lab exists.
*/
readonly location: string;
readonly name: string;
/**
* The ID of the Storage Account used for Storage of Premium Data Disk.
*/
readonly premiumDataDiskStorageAccountId: string;
readonly resourceGroupName: string;
/**
* The type of storage used by the Dev Test Lab.
*/
readonly storageType: string;
/**
* A mapping of tags to assign to the resource.
*/
readonly tags: {[key: string]: string};
/**
* The unique immutable identifier of the Dev Test Lab.
*/
readonly uniqueIdentifier: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}