@pulumiverse/grafana 0.2.1-alpha.1709570924
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +54 -0
- package/annotation.d.ts +151 -0
- package/annotation.js +79 -0
- package/annotation.js.map +1 -0
- package/apiKey.d.ts +77 -0
- package/apiKey.js +80 -0
- package/apiKey.js.map +1 -0
- package/cloudAccessPolicy.d.ts +156 -0
- package/cloudAccessPolicy.js +115 -0
- package/cloudAccessPolicy.js.map +1 -0
- package/cloudAccessPolicyToken.d.ts +151 -0
- package/cloudAccessPolicyToken.js +108 -0
- package/cloudAccessPolicyToken.js.map +1 -0
- package/cloudApiKey.d.ts +102 -0
- package/cloudApiKey.js +85 -0
- package/cloudApiKey.js.map +1 -0
- package/cloudPluginInstallation.d.ts +96 -0
- package/cloudPluginInstallation.js +86 -0
- package/cloudPluginInstallation.js.map +1 -0
- package/cloudStack.d.ts +291 -0
- package/cloudStack.js +142 -0
- package/cloudStack.js.map +1 -0
- package/cloudStackApiKey.d.ts +52 -0
- package/cloudStackApiKey.js +67 -0
- package/cloudStackApiKey.js.map +1 -0
- package/cloudStackServiceAccount.d.ts +97 -0
- package/cloudStackServiceAccount.js +80 -0
- package/cloudStackServiceAccount.js.map +1 -0
- package/cloudStackServiceAccountToken.d.ts +78 -0
- package/cloudStackServiceAccountToken.js +93 -0
- package/cloudStackServiceAccountToken.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +89 -0
- package/config/vars.js +131 -0
- package/config/vars.js.map +1 -0
- package/contactPoint.d.ts +310 -0
- package/contactPoint.js +119 -0
- package/contactPoint.js.map +1 -0
- package/dashboard.d.ts +154 -0
- package/dashboard.js +94 -0
- package/dashboard.js.map +1 -0
- package/dashboardPermission.d.ts +131 -0
- package/dashboardPermission.js +97 -0
- package/dashboardPermission.js.map +1 -0
- package/dataSource.d.ts +294 -0
- package/dataSource.js +164 -0
- package/dataSource.js.map +1 -0
- package/dataSourcePermission.d.ts +124 -0
- package/dataSourcePermission.js +109 -0
- package/dataSourcePermission.js.map +1 -0
- package/folder.d.ts +127 -0
- package/folder.js +95 -0
- package/folder.js.map +1 -0
- package/folderPermission.d.ts +106 -0
- package/folderPermission.js +91 -0
- package/folderPermission.js.map +1 -0
- package/getCloudIps.d.ts +56 -0
- package/getCloudIps.js +41 -0
- package/getCloudIps.js.map +1 -0
- package/getCloudOrganization.d.ts +37 -0
- package/getCloudOrganization.js +21 -0
- package/getCloudOrganization.js.map +1 -0
- package/getCloudStack.d.ts +130 -0
- package/getCloudStack.js +25 -0
- package/getCloudStack.js.map +1 -0
- package/getDashboard.d.ts +134 -0
- package/getDashboard.js +81 -0
- package/getDashboard.js.map +1 -0
- package/getDashboards.d.ts +74 -0
- package/getDashboards.js +36 -0
- package/getDashboards.js.map +1 -0
- package/getDataSource.d.ts +156 -0
- package/getDataSource.js +95 -0
- package/getDataSource.js.map +1 -0
- package/getFolder.d.ts +82 -0
- package/getFolder.js +59 -0
- package/getFolder.js.map +1 -0
- package/getFolders.d.ts +61 -0
- package/getFolders.js +61 -0
- package/getFolders.js.map +1 -0
- package/getLibraryPanel.d.ts +108 -0
- package/getLibraryPanel.js +28 -0
- package/getLibraryPanel.js.map +1 -0
- package/getOnCallSlackChannel.d.ts +66 -0
- package/getOnCallSlackChannel.js +47 -0
- package/getOnCallSlackChannel.js.map +1 -0
- package/getOncallAction.d.ts +46 -0
- package/getOncallAction.js +31 -0
- package/getOncallAction.js.map +1 -0
- package/getOncallEscalationChain.d.ts +62 -0
- package/getOncallEscalationChain.js +47 -0
- package/getOncallEscalationChain.js.map +1 -0
- package/getOncallOutgoingWebhook.d.ts +62 -0
- package/getOncallOutgoingWebhook.js +47 -0
- package/getOncallOutgoingWebhook.js.map +1 -0
- package/getOncallSchedule.d.ts +68 -0
- package/getOncallSchedule.js +49 -0
- package/getOncallSchedule.js.map +1 -0
- package/getOncallTeam.d.ts +60 -0
- package/getOncallTeam.js +43 -0
- package/getOncallTeam.js.map +1 -0
- package/getOncallUser.d.ts +70 -0
- package/getOncallUser.js +47 -0
- package/getOncallUser.js.map +1 -0
- package/getOncallUserGroup.d.ts +54 -0
- package/getOncallUserGroup.js +47 -0
- package/getOncallUserGroup.js.map +1 -0
- package/getOrganization.d.ts +94 -0
- package/getOrganization.js +67 -0
- package/getOrganization.js.map +1 -0
- package/getOrganizationPreferences.d.ts +62 -0
- package/getOrganizationPreferences.js +43 -0
- package/getOrganizationPreferences.js.map +1 -0
- package/getRole.d.ts +147 -0
- package/getRole.js +95 -0
- package/getRole.js.map +1 -0
- package/getSlos.d.ts +31 -0
- package/getSlos.js +31 -0
- package/getSlos.js.map +1 -0
- package/getSyntheticMonitoringProbe.d.ts +88 -0
- package/getSyntheticMonitoringProbe.js +47 -0
- package/getSyntheticMonitoringProbe.js.map +1 -0
- package/getSyntheticMonitoringProbes.d.ts +64 -0
- package/getSyntheticMonitoringProbes.js +44 -0
- package/getSyntheticMonitoringProbes.js.map +1 -0
- package/getTeam.d.ts +83 -0
- package/getTeam.js +67 -0
- package/getTeam.js.map +1 -0
- package/getUser.d.ts +128 -0
- package/getUser.js +84 -0
- package/getUser.js.map +1 -0
- package/getUsers.d.ts +61 -0
- package/getUsers.js +61 -0
- package/getUsers.js.map +1 -0
- package/index.d.ts +228 -0
- package/index.js +353 -0
- package/index.js.map +1 -0
- package/libraryPanel.d.ts +193 -0
- package/libraryPanel.js +103 -0
- package/libraryPanel.js.map +1 -0
- package/machineLearningHoliday.d.ts +103 -0
- package/machineLearningHoliday.js +62 -0
- package/machineLearningHoliday.js.map +1 -0
- package/machineLearningJob.d.ts +201 -0
- package/machineLearningJob.js +83 -0
- package/machineLearningJob.js.map +1 -0
- package/machineLearningOutlierDetector.d.ts +159 -0
- package/machineLearningOutlierDetector.js +84 -0
- package/machineLearningOutlierDetector.js.map +1 -0
- package/messageTemplate.d.ts +86 -0
- package/messageTemplate.js +80 -0
- package/messageTemplate.js.map +1 -0
- package/muteTiming.d.ts +106 -0
- package/muteTiming.js +95 -0
- package/muteTiming.js.map +1 -0
- package/notificationPolicy.d.ts +186 -0
- package/notificationPolicy.js +141 -0
- package/notificationPolicy.js.map +1 -0
- package/oncallEscalation.d.ts +227 -0
- package/oncallEscalation.js +124 -0
- package/oncallEscalation.js.map +1 -0
- package/oncallEscalationChain.d.ts +80 -0
- package/oncallEscalationChain.js +71 -0
- package/oncallEscalationChain.js.map +1 -0
- package/oncallIntegration.d.ts +116 -0
- package/oncallIntegration.js +75 -0
- package/oncallIntegration.js.map +1 -0
- package/oncallOnCallShift.d.ts +237 -0
- package/oncallOnCallShift.js +97 -0
- package/oncallOnCallShift.js.map +1 -0
- package/oncallOutgoingWebhook.d.ts +152 -0
- package/oncallOutgoingWebhook.js +88 -0
- package/oncallOutgoingWebhook.js.map +1 -0
- package/oncallRoute.d.ts +175 -0
- package/oncallRoute.js +116 -0
- package/oncallRoute.js.map +1 -0
- package/oncallSchedule.d.ts +187 -0
- package/oncallSchedule.js +109 -0
- package/oncallSchedule.js.map +1 -0
- package/organization.d.ts +193 -0
- package/organization.js +96 -0
- package/organization.js.map +1 -0
- package/organizationPreference.d.ts +125 -0
- package/organizationPreference.js +76 -0
- package/organizationPreference.js.map +1 -0
- package/package.json +30 -0
- package/package.json.bak +29 -0
- package/package.json.dev +29 -0
- package/playlist.d.ts +72 -0
- package/playlist.js +65 -0
- package/playlist.js.map +1 -0
- package/provider.d.ts +166 -0
- package/provider.js +64 -0
- package/provider.js.map +1 -0
- package/report.d.ts +241 -0
- package/report.js +110 -0
- package/report.js.map +1 -0
- package/role.d.ts +210 -0
- package/role.js +109 -0
- package/role.js.map +1 -0
- package/roleAssignment.d.ts +131 -0
- package/roleAssignment.js +95 -0
- package/roleAssignment.js.map +1 -0
- package/ruleGroup.d.ts +203 -0
- package/ruleGroup.js +174 -0
- package/ruleGroup.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/serviceAccount.d.ts +102 -0
- package/serviceAccount.js +73 -0
- package/serviceAccount.js.map +1 -0
- package/serviceAccountPermission.d.ts +110 -0
- package/serviceAccountPermission.js +95 -0
- package/serviceAccountPermission.js.map +1 -0
- package/serviceAccountToken.d.ts +72 -0
- package/serviceAccountToken.js +85 -0
- package/serviceAccountToken.js.map +1 -0
- package/slo.d.ts +131 -0
- package/slo.js +77 -0
- package/slo.js.map +1 -0
- package/syntheticMonitoringCheck.d.ts +555 -0
- package/syntheticMonitoringCheck.js +464 -0
- package/syntheticMonitoringCheck.js.map +1 -0
- package/syntheticMonitoringInstallation.d.ts +112 -0
- package/syntheticMonitoringInstallation.js +95 -0
- package/syntheticMonitoringInstallation.js.map +1 -0
- package/syntheticMonitoringProbe.d.ts +164 -0
- package/syntheticMonitoringProbe.js +108 -0
- package/syntheticMonitoringProbe.js.map +1 -0
- package/team.d.ts +165 -0
- package/team.js +89 -0
- package/team.js.map +1 -0
- package/teamExternalGroup.d.ts +84 -0
- package/teamExternalGroup.js +81 -0
- package/teamExternalGroup.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1914 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2011 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +132 -0
- package/user.js +95 -0
- package/user.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syntheticMonitoringInstallation.js","sourceRoot":"","sources":["../syntheticMonitoringInstallation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc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
|
+
* own private probes. These are only accessible to you and only write data to
|
|
5
|
+
* your Grafana Cloud account. Private probes are instances of the open source
|
|
6
|
+
* Grafana Synthetic Monitoring Agent.
|
|
7
|
+
*
|
|
8
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/private-probes/)
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
15
|
+
*
|
|
16
|
+
* const main = new grafana.SyntheticMonitoringProbe("main", {
|
|
17
|
+
* labels: {
|
|
18
|
+
* type: "mountain",
|
|
19
|
+
* },
|
|
20
|
+
* latitude: 27.98606,
|
|
21
|
+
* longitude: 86.92262,
|
|
22
|
+
* region: "APAC",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import grafana:index/syntheticMonitoringProbe:SyntheticMonitoringProbe probe {{probe-id}}
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import grafana:index/syntheticMonitoringProbe:SyntheticMonitoringProbe probe {{probe-id}}:{{auth_token}}
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class SyntheticMonitoringProbe extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing SyntheticMonitoringProbe resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SyntheticMonitoringProbeState, opts?: pulumi.CustomResourceOptions): SyntheticMonitoringProbe;
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of SyntheticMonitoringProbe. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj: any): obj is SyntheticMonitoringProbe;
|
|
52
|
+
/**
|
|
53
|
+
* The probe authentication token. Your probe must use this to authenticate with Grafana Cloud.
|
|
54
|
+
*/
|
|
55
|
+
readonly authToken: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Custom labels to be included with collected metrics and logs.
|
|
58
|
+
*/
|
|
59
|
+
readonly labels: pulumi.Output<{
|
|
60
|
+
[key: string]: string;
|
|
61
|
+
} | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* Latitude coordinates.
|
|
64
|
+
*/
|
|
65
|
+
readonly latitude: pulumi.Output<number>;
|
|
66
|
+
/**
|
|
67
|
+
* Longitude coordinates.
|
|
68
|
+
*/
|
|
69
|
+
readonly longitude: pulumi.Output<number>;
|
|
70
|
+
/**
|
|
71
|
+
* Name of the probe.
|
|
72
|
+
*/
|
|
73
|
+
readonly name: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Public probes are run by Grafana Labs and can be used by all users. Only Grafana Labs managed public probes will be set to `true`. Defaults to `false`.
|
|
76
|
+
*/
|
|
77
|
+
readonly public: pulumi.Output<boolean | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* Region of the probe.
|
|
80
|
+
*/
|
|
81
|
+
readonly region: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The tenant ID of the probe.
|
|
84
|
+
*/
|
|
85
|
+
readonly tenantId: pulumi.Output<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a SyntheticMonitoringProbe resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: SyntheticMonitoringProbeArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering SyntheticMonitoringProbe resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface SyntheticMonitoringProbeState {
|
|
99
|
+
/**
|
|
100
|
+
* The probe authentication token. Your probe must use this to authenticate with Grafana Cloud.
|
|
101
|
+
*/
|
|
102
|
+
authToken?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Custom labels to be included with collected metrics and logs.
|
|
105
|
+
*/
|
|
106
|
+
labels?: pulumi.Input<{
|
|
107
|
+
[key: string]: pulumi.Input<string>;
|
|
108
|
+
}>;
|
|
109
|
+
/**
|
|
110
|
+
* Latitude coordinates.
|
|
111
|
+
*/
|
|
112
|
+
latitude?: pulumi.Input<number>;
|
|
113
|
+
/**
|
|
114
|
+
* Longitude coordinates.
|
|
115
|
+
*/
|
|
116
|
+
longitude?: pulumi.Input<number>;
|
|
117
|
+
/**
|
|
118
|
+
* Name of the probe.
|
|
119
|
+
*/
|
|
120
|
+
name?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Public probes are run by Grafana Labs and can be used by all users. Only Grafana Labs managed public probes will be set to `true`. Defaults to `false`.
|
|
123
|
+
*/
|
|
124
|
+
public?: pulumi.Input<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* Region of the probe.
|
|
127
|
+
*/
|
|
128
|
+
region?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The tenant ID of the probe.
|
|
131
|
+
*/
|
|
132
|
+
tenantId?: pulumi.Input<number>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The set of arguments for constructing a SyntheticMonitoringProbe resource.
|
|
136
|
+
*/
|
|
137
|
+
export interface SyntheticMonitoringProbeArgs {
|
|
138
|
+
/**
|
|
139
|
+
* Custom labels to be included with collected metrics and logs.
|
|
140
|
+
*/
|
|
141
|
+
labels?: pulumi.Input<{
|
|
142
|
+
[key: string]: pulumi.Input<string>;
|
|
143
|
+
}>;
|
|
144
|
+
/**
|
|
145
|
+
* Latitude coordinates.
|
|
146
|
+
*/
|
|
147
|
+
latitude: pulumi.Input<number>;
|
|
148
|
+
/**
|
|
149
|
+
* Longitude coordinates.
|
|
150
|
+
*/
|
|
151
|
+
longitude: pulumi.Input<number>;
|
|
152
|
+
/**
|
|
153
|
+
* Name of the probe.
|
|
154
|
+
*/
|
|
155
|
+
name?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Public probes are run by Grafana Labs and can be used by all users. Only Grafana Labs managed public probes will be set to `true`. Defaults to `false`.
|
|
158
|
+
*/
|
|
159
|
+
public?: pulumi.Input<boolean>;
|
|
160
|
+
/**
|
|
161
|
+
* Region of the probe.
|
|
162
|
+
*/
|
|
163
|
+
region: pulumi.Input<string>;
|
|
164
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SyntheticMonitoringProbe = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Besides the public probes run by Grafana Labs, you can also install your
|
|
10
|
+
* own private probes. These are only accessible to you and only write data to
|
|
11
|
+
* your Grafana Cloud account. Private probes are instances of the open source
|
|
12
|
+
* Grafana Synthetic Monitoring Agent.
|
|
13
|
+
*
|
|
14
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/private-probes/)
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
21
|
+
*
|
|
22
|
+
* const main = new grafana.SyntheticMonitoringProbe("main", {
|
|
23
|
+
* labels: {
|
|
24
|
+
* type: "mountain",
|
|
25
|
+
* },
|
|
26
|
+
* latitude: 27.98606,
|
|
27
|
+
* longitude: 86.92262,
|
|
28
|
+
* region: "APAC",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import grafana:index/syntheticMonitoringProbe:SyntheticMonitoringProbe probe {{probe-id}}
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import grafana:index/syntheticMonitoringProbe:SyntheticMonitoringProbe probe {{probe-id}}:{{auth_token}}
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
class SyntheticMonitoringProbe extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing SyntheticMonitoringProbe resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new SyntheticMonitoringProbe(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of SyntheticMonitoringProbe. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === SyntheticMonitoringProbe.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["authToken"] = state ? state.authToken : undefined;
|
|
71
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
72
|
+
resourceInputs["latitude"] = state ? state.latitude : undefined;
|
|
73
|
+
resourceInputs["longitude"] = state ? state.longitude : undefined;
|
|
74
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
75
|
+
resourceInputs["public"] = state ? state.public : undefined;
|
|
76
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
77
|
+
resourceInputs["tenantId"] = state ? state.tenantId : undefined;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const args = argsOrState;
|
|
81
|
+
if ((!args || args.latitude === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'latitude'");
|
|
83
|
+
}
|
|
84
|
+
if ((!args || args.longitude === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'longitude'");
|
|
86
|
+
}
|
|
87
|
+
if ((!args || args.region === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'region'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
91
|
+
resourceInputs["latitude"] = args ? args.latitude : undefined;
|
|
92
|
+
resourceInputs["longitude"] = args ? args.longitude : undefined;
|
|
93
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
94
|
+
resourceInputs["public"] = args ? args.public : undefined;
|
|
95
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
96
|
+
resourceInputs["authToken"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
98
|
+
}
|
|
99
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
100
|
+
const secretOpts = { additionalSecretOutputs: ["authToken"] };
|
|
101
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
102
|
+
super(SyntheticMonitoringProbe.__pulumiType, name, resourceInputs, opts);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.SyntheticMonitoringProbe = SyntheticMonitoringProbe;
|
|
106
|
+
/** @internal */
|
|
107
|
+
SyntheticMonitoringProbe.__pulumiType = 'grafana:index/syntheticMonitoringProbe:SyntheticMonitoringProbe';
|
|
108
|
+
//# sourceMappingURL=syntheticMonitoringProbe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syntheticMonitoringProbe.js","sourceRoot":"","sources":["../syntheticMonitoringProbe.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;IA2CD,YAAY,IAAY,EA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AAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC9D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AA1GL,4DA2GC;AA7FG,gBAAgB;AACO,qCAAY,GAAG,iEAAiE,CAAC"}
|
package/team.d.ts
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/team-management/)
|
|
6
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/team/)
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
13
|
+
*
|
|
14
|
+
* const test_team = new grafana.Team("test-team", {
|
|
15
|
+
* email: "teamemail@example.com",
|
|
16
|
+
* members: ["viewer-01@example.com"],
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import grafana:index/team:Team team_name {{team_id}} # To use the default provider org
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import grafana:index/team:Team team_name {{org_id}}:{{team_id}} # When "org_id" is set on the resource
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class Team extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is Team;
|
|
46
|
+
/**
|
|
47
|
+
* An email address for the team.
|
|
48
|
+
*/
|
|
49
|
+
readonly email: pulumi.Output<string | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Ignores team members that have been added to team by [Team
|
|
52
|
+
* Sync](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/). Team Sync can be
|
|
53
|
+
* provisioned using [grafana_team_external_group
|
|
54
|
+
* resource](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/team_external_group).
|
|
55
|
+
*/
|
|
56
|
+
readonly ignoreExternallySyncedMembers: pulumi.Output<boolean | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* A set of email addresses corresponding to users who should be given membership to the team. Note: users specified here
|
|
59
|
+
* must already exist in Grafana.
|
|
60
|
+
*/
|
|
61
|
+
readonly members: pulumi.Output<string[] | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* The display name for the Grafana team created.
|
|
64
|
+
*/
|
|
65
|
+
readonly name: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
68
|
+
*/
|
|
69
|
+
readonly orgId: pulumi.Output<string | undefined>;
|
|
70
|
+
readonly preferences: pulumi.Output<outputs.TeamPreferences | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The team id assigned to this team by Grafana.
|
|
73
|
+
*/
|
|
74
|
+
readonly teamId: pulumi.Output<number>;
|
|
75
|
+
/**
|
|
76
|
+
* Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise. * [Official
|
|
77
|
+
* documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/) * [HTTP
|
|
78
|
+
* API](https://grafana.com/docs/grafana/latest/developers/http_api/team_sync/)
|
|
79
|
+
*/
|
|
80
|
+
readonly teamSync: pulumi.Output<outputs.TeamTeamSync | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* Create a Team resource with the given unique name, arguments, and options.
|
|
83
|
+
*
|
|
84
|
+
* @param name The _unique_ name of the resource.
|
|
85
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
86
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
87
|
+
*/
|
|
88
|
+
constructor(name: string, args?: TeamArgs, opts?: pulumi.CustomResourceOptions);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Input properties used for looking up and filtering Team resources.
|
|
92
|
+
*/
|
|
93
|
+
export interface TeamState {
|
|
94
|
+
/**
|
|
95
|
+
* An email address for the team.
|
|
96
|
+
*/
|
|
97
|
+
email?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Ignores team members that have been added to team by [Team
|
|
100
|
+
* Sync](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/). Team Sync can be
|
|
101
|
+
* provisioned using [grafana_team_external_group
|
|
102
|
+
* resource](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/team_external_group).
|
|
103
|
+
*/
|
|
104
|
+
ignoreExternallySyncedMembers?: pulumi.Input<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* A set of email addresses corresponding to users who should be given membership to the team. Note: users specified here
|
|
107
|
+
* must already exist in Grafana.
|
|
108
|
+
*/
|
|
109
|
+
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
110
|
+
/**
|
|
111
|
+
* The display name for the Grafana team created.
|
|
112
|
+
*/
|
|
113
|
+
name?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
116
|
+
*/
|
|
117
|
+
orgId?: pulumi.Input<string>;
|
|
118
|
+
preferences?: pulumi.Input<inputs.TeamPreferences>;
|
|
119
|
+
/**
|
|
120
|
+
* The team id assigned to this team by Grafana.
|
|
121
|
+
*/
|
|
122
|
+
teamId?: pulumi.Input<number>;
|
|
123
|
+
/**
|
|
124
|
+
* Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise. * [Official
|
|
125
|
+
* documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/) * [HTTP
|
|
126
|
+
* API](https://grafana.com/docs/grafana/latest/developers/http_api/team_sync/)
|
|
127
|
+
*/
|
|
128
|
+
teamSync?: pulumi.Input<inputs.TeamTeamSync>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The set of arguments for constructing a Team resource.
|
|
132
|
+
*/
|
|
133
|
+
export interface TeamArgs {
|
|
134
|
+
/**
|
|
135
|
+
* An email address for the team.
|
|
136
|
+
*/
|
|
137
|
+
email?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Ignores team members that have been added to team by [Team
|
|
140
|
+
* Sync](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/). Team Sync can be
|
|
141
|
+
* provisioned using [grafana_team_external_group
|
|
142
|
+
* resource](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/team_external_group).
|
|
143
|
+
*/
|
|
144
|
+
ignoreExternallySyncedMembers?: pulumi.Input<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* A set of email addresses corresponding to users who should be given membership to the team. Note: users specified here
|
|
147
|
+
* must already exist in Grafana.
|
|
148
|
+
*/
|
|
149
|
+
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
150
|
+
/**
|
|
151
|
+
* The display name for the Grafana team created.
|
|
152
|
+
*/
|
|
153
|
+
name?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
156
|
+
*/
|
|
157
|
+
orgId?: pulumi.Input<string>;
|
|
158
|
+
preferences?: pulumi.Input<inputs.TeamPreferences>;
|
|
159
|
+
/**
|
|
160
|
+
* Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise. * [Official
|
|
161
|
+
* documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/) * [HTTP
|
|
162
|
+
* API](https://grafana.com/docs/grafana/latest/developers/http_api/team_sync/)
|
|
163
|
+
*/
|
|
164
|
+
teamSync?: pulumi.Input<inputs.TeamTeamSync>;
|
|
165
|
+
}
|
package/team.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Team = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/team-management/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/team/)
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
17
|
+
*
|
|
18
|
+
* const test_team = new grafana.Team("test-team", {
|
|
19
|
+
* email: "teamemail@example.com",
|
|
20
|
+
* members: ["viewer-01@example.com"],
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import grafana:index/team:Team team_name {{team_id}} # To use the default provider org
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import grafana:index/team:Team team_name {{org_id}}:{{team_id}} # When "org_id" is set on the resource
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class Team extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name, id, state, opts) {
|
|
45
|
+
return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj) {
|
|
52
|
+
if (obj === undefined || obj === null) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return obj['__pulumiType'] === Team.__pulumiType;
|
|
56
|
+
}
|
|
57
|
+
constructor(name, argsOrState, opts) {
|
|
58
|
+
let resourceInputs = {};
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
if (opts.id) {
|
|
61
|
+
const state = argsOrState;
|
|
62
|
+
resourceInputs["email"] = state ? state.email : undefined;
|
|
63
|
+
resourceInputs["ignoreExternallySyncedMembers"] = state ? state.ignoreExternallySyncedMembers : undefined;
|
|
64
|
+
resourceInputs["members"] = state ? state.members : undefined;
|
|
65
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
66
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
67
|
+
resourceInputs["preferences"] = state ? state.preferences : undefined;
|
|
68
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
69
|
+
resourceInputs["teamSync"] = state ? state.teamSync : undefined;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const args = argsOrState;
|
|
73
|
+
resourceInputs["email"] = args ? args.email : undefined;
|
|
74
|
+
resourceInputs["ignoreExternallySyncedMembers"] = args ? args.ignoreExternallySyncedMembers : undefined;
|
|
75
|
+
resourceInputs["members"] = args ? args.members : undefined;
|
|
76
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
77
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
78
|
+
resourceInputs["preferences"] = args ? args.preferences : undefined;
|
|
79
|
+
resourceInputs["teamSync"] = args ? args.teamSync : undefined;
|
|
80
|
+
resourceInputs["teamId"] = undefined /*out*/;
|
|
81
|
+
}
|
|
82
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
|
+
super(Team.__pulumiType, name, resourceInputs, opts);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.Team = Team;
|
|
87
|
+
/** @internal */
|
|
88
|
+
Team.__pulumiType = 'grafana:index/team:Team';
|
|
89
|
+
//# sourceMappingURL=team.js.map
|
package/team.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GA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AC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAlGL,oBAmGC;AArFG,gBAAgB;AACO,iBAAY,GAAG,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use the `teamSync` attribute of the `grafana.Team` resource instead.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
10
|
+
*
|
|
11
|
+
* const test_team_group = new grafana.TeamExternalGroup("test-team-group", {
|
|
12
|
+
* groups: [
|
|
13
|
+
* "test-group-1",
|
|
14
|
+
* "test-group-2",
|
|
15
|
+
* ],
|
|
16
|
+
* teamId: "1",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import grafana:index/teamExternalGroup:TeamExternalGroup main {{team_id}}
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class TeamExternalGroup extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing TeamExternalGroup resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamExternalGroupState, opts?: pulumi.CustomResourceOptions): TeamExternalGroup;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of TeamExternalGroup. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj: any): obj is TeamExternalGroup;
|
|
42
|
+
/**
|
|
43
|
+
* The team external groups list
|
|
44
|
+
*/
|
|
45
|
+
readonly groups: pulumi.Output<string[]>;
|
|
46
|
+
/**
|
|
47
|
+
* The Team ID
|
|
48
|
+
*/
|
|
49
|
+
readonly teamId: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Create a TeamExternalGroup resource with the given unique name, arguments, and options.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resource.
|
|
54
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
55
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
56
|
+
*/
|
|
57
|
+
constructor(name: string, args: TeamExternalGroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Input properties used for looking up and filtering TeamExternalGroup resources.
|
|
61
|
+
*/
|
|
62
|
+
export interface TeamExternalGroupState {
|
|
63
|
+
/**
|
|
64
|
+
* The team external groups list
|
|
65
|
+
*/
|
|
66
|
+
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
67
|
+
/**
|
|
68
|
+
* The Team ID
|
|
69
|
+
*/
|
|
70
|
+
teamId?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a TeamExternalGroup resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface TeamExternalGroupArgs {
|
|
76
|
+
/**
|
|
77
|
+
* The team external groups list
|
|
78
|
+
*/
|
|
79
|
+
groups: pulumi.Input<pulumi.Input<string>[]>;
|
|
80
|
+
/**
|
|
81
|
+
* The Team ID
|
|
82
|
+
*/
|
|
83
|
+
teamId: pulumi.Input<string>;
|
|
84
|
+
}
|