@pulumiverse/grafana 0.4.3-alpha.1713453387 → 0.5.0

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.
Files changed (69) hide show
  1. package/cloudOrgMember.d.ts +84 -0
  2. package/cloudOrgMember.js +64 -0
  3. package/cloudOrgMember.js.map +1 -0
  4. package/cloudStackServiceAccount.d.ts +2 -2
  5. package/cloudStackServiceAccount.js +3 -0
  6. package/cloudStackServiceAccount.js.map +1 -1
  7. package/dashboardPermissionItem.d.ts +108 -0
  8. package/dashboardPermissionItem.js +65 -0
  9. package/dashboardPermissionItem.js.map +1 -0
  10. package/dataSourceConfig.d.ts +114 -0
  11. package/dataSourceConfig.js +59 -0
  12. package/dataSourceConfig.js.map +1 -0
  13. package/dataSourcePermission.d.ts +23 -5
  14. package/dataSourcePermission.js +2 -3
  15. package/dataSourcePermission.js.map +1 -1
  16. package/dataSourcePermissionItem.d.ts +108 -0
  17. package/dataSourcePermissionItem.js +65 -0
  18. package/dataSourcePermissionItem.js.map +1 -0
  19. package/folderPermissionItem.d.ts +108 -0
  20. package/folderPermissionItem.js +65 -0
  21. package/folderPermissionItem.js.map +1 -0
  22. package/getDashboard.d.ts +4 -0
  23. package/getDashboard.js.map +1 -1
  24. package/getDashboards.d.ts +12 -0
  25. package/getDashboards.js +1 -0
  26. package/getDashboards.js.map +1 -1
  27. package/getDataSource.d.ts +9 -0
  28. package/getDataSource.js.map +1 -1
  29. package/getLibraryPanel.d.ts +3 -0
  30. package/getLibraryPanel.js.map +1 -1
  31. package/getOncallIntegration.d.ts +22 -0
  32. package/getOncallIntegration.js +19 -0
  33. package/getOncallIntegration.js.map +1 -0
  34. package/index.d.ts +24 -0
  35. package/index.js +41 -3
  36. package/index.js.map +1 -1
  37. package/libraryPanel.d.ts +14 -4
  38. package/libraryPanel.js +1 -1
  39. package/libraryPanel.js.map +1 -1
  40. package/machineLearningJob.d.ts +6 -0
  41. package/machineLearningJob.js.map +1 -1
  42. package/machineLearningOutlierDetector.d.ts +6 -0
  43. package/machineLearningOutlierDetector.js.map +1 -1
  44. package/muteTiming.d.ts +12 -0
  45. package/muteTiming.js +2 -0
  46. package/muteTiming.js.map +1 -1
  47. package/oncallEscalation.d.ts +24 -9
  48. package/oncallEscalation.js +2 -0
  49. package/oncallEscalation.js.map +1 -1
  50. package/oncallSchedule.d.ts +3 -3
  51. package/package.json +2 -2
  52. package/package.json.dev +1 -1
  53. package/provider.d.ts +2 -2
  54. package/roleAssignmentItem.d.ts +96 -0
  55. package/roleAssignmentItem.js +60 -0
  56. package/roleAssignmentItem.js.map +1 -0
  57. package/serviceAccount.d.ts +3 -3
  58. package/serviceAccount.js +3 -0
  59. package/serviceAccount.js.map +1 -1
  60. package/serviceAccountPermissionItem.d.ts +96 -0
  61. package/serviceAccountPermissionItem.js +63 -0
  62. package/serviceAccountPermissionItem.js.map +1 -0
  63. package/ssoSettings.d.ts +20 -8
  64. package/ssoSettings.js +2 -3
  65. package/ssoSettings.js.map +1 -1
  66. package/syntheticMonitoringCheck.d.ts +3 -3
  67. package/syntheticMonitoringInstallation.d.ts +9 -9
  68. package/types/input.d.ts +139 -13
  69. package/types/output.d.ts +139 -13
@@ -0,0 +1,84 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class CloudOrgMember extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing CloudOrgMember resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CloudOrgMemberState, opts?: pulumi.CustomResourceOptions): CloudOrgMember;
13
+ /**
14
+ * Returns true if the given object is an instance of CloudOrgMember. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is CloudOrgMember;
18
+ /**
19
+ * The slug or ID of the organization.
20
+ */
21
+ readonly org: pulumi.Output<string>;
22
+ /**
23
+ * Whether the user should receive billing emails.
24
+ */
25
+ readonly receiveBillingEmails: pulumi.Output<boolean>;
26
+ /**
27
+ * The role to assign to the user in the organization.
28
+ */
29
+ readonly role: pulumi.Output<string>;
30
+ /**
31
+ * Username or ID of the user to add to the org's members.
32
+ */
33
+ readonly user: pulumi.Output<string>;
34
+ /**
35
+ * Create a CloudOrgMember resource with the given unique name, arguments, and options.
36
+ *
37
+ * @param name The _unique_ name of the resource.
38
+ * @param args The arguments to use to populate this resource's properties.
39
+ * @param opts A bag of options that control this resource's behavior.
40
+ */
41
+ constructor(name: string, args: CloudOrgMemberArgs, opts?: pulumi.CustomResourceOptions);
42
+ }
43
+ /**
44
+ * Input properties used for looking up and filtering CloudOrgMember resources.
45
+ */
46
+ export interface CloudOrgMemberState {
47
+ /**
48
+ * The slug or ID of the organization.
49
+ */
50
+ org?: pulumi.Input<string>;
51
+ /**
52
+ * Whether the user should receive billing emails.
53
+ */
54
+ receiveBillingEmails?: pulumi.Input<boolean>;
55
+ /**
56
+ * The role to assign to the user in the organization.
57
+ */
58
+ role?: pulumi.Input<string>;
59
+ /**
60
+ * Username or ID of the user to add to the org's members.
61
+ */
62
+ user?: pulumi.Input<string>;
63
+ }
64
+ /**
65
+ * The set of arguments for constructing a CloudOrgMember resource.
66
+ */
67
+ export interface CloudOrgMemberArgs {
68
+ /**
69
+ * The slug or ID of the organization.
70
+ */
71
+ org: pulumi.Input<string>;
72
+ /**
73
+ * Whether the user should receive billing emails.
74
+ */
75
+ receiveBillingEmails?: pulumi.Input<boolean>;
76
+ /**
77
+ * The role to assign to the user in the organization.
78
+ */
79
+ role: pulumi.Input<string>;
80
+ /**
81
+ * Username or ID of the user to add to the org's members.
82
+ */
83
+ user: pulumi.Input<string>;
84
+ }
@@ -0,0 +1,64 @@
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.CloudOrgMember = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class CloudOrgMember extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing CloudOrgMember resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new CloudOrgMember(name, state, Object.assign(Object.assign({}, opts), { id: id }));
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of CloudOrgMember. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === CloudOrgMember.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["org"] = state ? state.org : undefined;
37
+ resourceInputs["receiveBillingEmails"] = state ? state.receiveBillingEmails : undefined;
38
+ resourceInputs["role"] = state ? state.role : undefined;
39
+ resourceInputs["user"] = state ? state.user : undefined;
40
+ }
41
+ else {
42
+ const args = argsOrState;
43
+ if ((!args || args.org === undefined) && !opts.urn) {
44
+ throw new Error("Missing required property 'org'");
45
+ }
46
+ if ((!args || args.role === undefined) && !opts.urn) {
47
+ throw new Error("Missing required property 'role'");
48
+ }
49
+ if ((!args || args.user === undefined) && !opts.urn) {
50
+ throw new Error("Missing required property 'user'");
51
+ }
52
+ resourceInputs["org"] = args ? args.org : undefined;
53
+ resourceInputs["receiveBillingEmails"] = args ? args.receiveBillingEmails : undefined;
54
+ resourceInputs["role"] = args ? args.role : undefined;
55
+ resourceInputs["user"] = args ? args.user : undefined;
56
+ }
57
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
58
+ super(CloudOrgMember.__pulumiType, name, resourceInputs, opts);
59
+ }
60
+ }
61
+ exports.CloudOrgMember = CloudOrgMember;
62
+ /** @internal */
63
+ CloudOrgMember.__pulumiType = 'grafana:index/cloudOrgMember:CloudOrgMember';
64
+ //# sourceMappingURL=cloudOrgMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudOrgMember.js","sourceRoot":"","sources":["../cloudOrgMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CA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CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAhFL,wCAiFC;AAnEG,gBAAgB;AACO,2BAAY,GAAG,6CAA6C,CAAC"}
@@ -26,7 +26,7 @@ export declare class CloudStackServiceAccount extends pulumi.CustomResource {
26
26
  /**
27
27
  * The basic role of the service account in the organization.
28
28
  */
29
- readonly role: pulumi.Output<string | undefined>;
29
+ readonly role: pulumi.Output<string>;
30
30
  readonly stackSlug: pulumi.Output<string>;
31
31
  /**
32
32
  * Create a CloudStackServiceAccount resource with the given unique name, arguments, and options.
@@ -70,6 +70,6 @@ export interface CloudStackServiceAccountArgs {
70
70
  /**
71
71
  * The basic role of the service account in the organization.
72
72
  */
73
- role?: pulumi.Input<string>;
73
+ role: pulumi.Input<string>;
74
74
  stackSlug: pulumi.Input<string>;
75
75
  }
@@ -40,6 +40,9 @@ class CloudStackServiceAccount extends pulumi.CustomResource {
40
40
  }
41
41
  else {
42
42
  const args = argsOrState;
43
+ if ((!args || args.role === undefined) && !opts.urn) {
44
+ throw new Error("Missing required property 'role'");
45
+ }
43
46
  if ((!args || args.stackSlug === undefined) && !opts.urn) {
44
47
  throw new Error("Missing required property 'stackSlug'");
45
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cloudStackServiceAccount.js","sourceRoot":"","sources":["../cloudStackServiceAccount.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IA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C,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AA1EL,4DA2EC;AA7DG,gBAAgB;AACO,qCAAY,GAAG,iEAAiE,CAAC"}
@@ -0,0 +1,108 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class DashboardPermissionItem extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing DashboardPermissionItem resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardPermissionItemState, opts?: pulumi.CustomResourceOptions): DashboardPermissionItem;
13
+ /**
14
+ * Returns true if the given object is an instance of DashboardPermissionItem. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is DashboardPermissionItem;
18
+ /**
19
+ * The UID of the dashboard.
20
+ */
21
+ readonly dashboardUid: pulumi.Output<string>;
22
+ /**
23
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
24
+ */
25
+ readonly orgId: pulumi.Output<string>;
26
+ /**
27
+ * the permission to be assigned
28
+ */
29
+ readonly permission: pulumi.Output<string>;
30
+ /**
31
+ * the role onto which the permission is to be assigned
32
+ */
33
+ readonly role: pulumi.Output<string | undefined>;
34
+ /**
35
+ * the team onto which the permission is to be assigned
36
+ */
37
+ readonly team: pulumi.Output<string | undefined>;
38
+ /**
39
+ * the user or service account onto which the permission is to be assigned
40
+ */
41
+ readonly user: pulumi.Output<string | undefined>;
42
+ /**
43
+ * Create a DashboardPermissionItem resource with the given unique name, arguments, and options.
44
+ *
45
+ * @param name The _unique_ name of the resource.
46
+ * @param args The arguments to use to populate this resource's properties.
47
+ * @param opts A bag of options that control this resource's behavior.
48
+ */
49
+ constructor(name: string, args: DashboardPermissionItemArgs, opts?: pulumi.CustomResourceOptions);
50
+ }
51
+ /**
52
+ * Input properties used for looking up and filtering DashboardPermissionItem resources.
53
+ */
54
+ export interface DashboardPermissionItemState {
55
+ /**
56
+ * The UID of the dashboard.
57
+ */
58
+ dashboardUid?: pulumi.Input<string>;
59
+ /**
60
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
61
+ */
62
+ orgId?: pulumi.Input<string>;
63
+ /**
64
+ * the permission to be assigned
65
+ */
66
+ permission?: pulumi.Input<string>;
67
+ /**
68
+ * the role onto which the permission is to be assigned
69
+ */
70
+ role?: pulumi.Input<string>;
71
+ /**
72
+ * the team onto which the permission is to be assigned
73
+ */
74
+ team?: pulumi.Input<string>;
75
+ /**
76
+ * the user or service account onto which the permission is to be assigned
77
+ */
78
+ user?: pulumi.Input<string>;
79
+ }
80
+ /**
81
+ * The set of arguments for constructing a DashboardPermissionItem resource.
82
+ */
83
+ export interface DashboardPermissionItemArgs {
84
+ /**
85
+ * The UID of the dashboard.
86
+ */
87
+ dashboardUid: pulumi.Input<string>;
88
+ /**
89
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
90
+ */
91
+ orgId?: pulumi.Input<string>;
92
+ /**
93
+ * the permission to be assigned
94
+ */
95
+ permission: pulumi.Input<string>;
96
+ /**
97
+ * the role onto which the permission is to be assigned
98
+ */
99
+ role?: pulumi.Input<string>;
100
+ /**
101
+ * the team onto which the permission is to be assigned
102
+ */
103
+ team?: pulumi.Input<string>;
104
+ /**
105
+ * the user or service account onto which the permission is to be assigned
106
+ */
107
+ user?: pulumi.Input<string>;
108
+ }
@@ -0,0 +1,65 @@
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.DashboardPermissionItem = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class DashboardPermissionItem extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing DashboardPermissionItem resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new DashboardPermissionItem(name, state, Object.assign(Object.assign({}, opts), { id: id }));
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of DashboardPermissionItem. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === DashboardPermissionItem.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["dashboardUid"] = state ? state.dashboardUid : undefined;
37
+ resourceInputs["orgId"] = state ? state.orgId : undefined;
38
+ resourceInputs["permission"] = state ? state.permission : undefined;
39
+ resourceInputs["role"] = state ? state.role : undefined;
40
+ resourceInputs["team"] = state ? state.team : undefined;
41
+ resourceInputs["user"] = state ? state.user : undefined;
42
+ }
43
+ else {
44
+ const args = argsOrState;
45
+ if ((!args || args.dashboardUid === undefined) && !opts.urn) {
46
+ throw new Error("Missing required property 'dashboardUid'");
47
+ }
48
+ if ((!args || args.permission === undefined) && !opts.urn) {
49
+ throw new Error("Missing required property 'permission'");
50
+ }
51
+ resourceInputs["dashboardUid"] = args ? args.dashboardUid : undefined;
52
+ resourceInputs["orgId"] = args ? args.orgId : undefined;
53
+ resourceInputs["permission"] = args ? args.permission : undefined;
54
+ resourceInputs["role"] = args ? args.role : undefined;
55
+ resourceInputs["team"] = args ? args.team : undefined;
56
+ resourceInputs["user"] = args ? args.user : undefined;
57
+ }
58
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
59
+ super(DashboardPermissionItem.__pulumiType, name, resourceInputs, opts);
60
+ }
61
+ }
62
+ exports.DashboardPermissionItem = DashboardPermissionItem;
63
+ /** @internal */
64
+ DashboardPermissionItem.__pulumiType = 'grafana:index/dashboardPermissionItem:DashboardPermissionItem';
65
+ //# sourceMappingURL=dashboardPermissionItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboardPermissionItem.js","sourceRoot":"","sources":["../dashboardPermissionItem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QA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;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AAzFL,0DA0FC;AA5EG,gBAAgB;AACO,oCAAY,GAAG,+DAA+D,CAAC"}
@@ -0,0 +1,114 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class DataSourceConfig extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing DataSourceConfig resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DataSourceConfigState, opts?: pulumi.CustomResourceOptions): DataSourceConfig;
13
+ /**
14
+ * Returns true if the given object is an instance of DataSourceConfig. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is DataSourceConfig;
18
+ /**
19
+ * Custom HTTP headers
20
+ */
21
+ readonly httpHeaders: pulumi.Output<{
22
+ [key: string]: string;
23
+ } | undefined>;
24
+ /**
25
+ * Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data
26
+ * source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it
27
+ * from the Grafana UI. Note that keys in this map are usually camelCased.
28
+ */
29
+ readonly jsonDataEncoded: pulumi.Output<string | undefined>;
30
+ /**
31
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
32
+ */
33
+ readonly orgId: pulumi.Output<string | undefined>;
34
+ /**
35
+ * Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options
36
+ * to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when
37
+ * saving it from the Grafana UI. Note that keys in this map are usually camelCased.
38
+ */
39
+ readonly secureJsonDataEncoded: pulumi.Output<string | undefined>;
40
+ /**
41
+ * Unique identifier. If unset, this will be automatically generated.
42
+ */
43
+ readonly uid: pulumi.Output<string>;
44
+ /**
45
+ * Create a DataSourceConfig resource with the given unique name, arguments, and options.
46
+ *
47
+ * @param name The _unique_ name of the resource.
48
+ * @param args The arguments to use to populate this resource's properties.
49
+ * @param opts A bag of options that control this resource's behavior.
50
+ */
51
+ constructor(name: string, args?: DataSourceConfigArgs, opts?: pulumi.CustomResourceOptions);
52
+ }
53
+ /**
54
+ * Input properties used for looking up and filtering DataSourceConfig resources.
55
+ */
56
+ export interface DataSourceConfigState {
57
+ /**
58
+ * Custom HTTP headers
59
+ */
60
+ httpHeaders?: pulumi.Input<{
61
+ [key: string]: pulumi.Input<string>;
62
+ }>;
63
+ /**
64
+ * Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data
65
+ * source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it
66
+ * from the Grafana UI. Note that keys in this map are usually camelCased.
67
+ */
68
+ jsonDataEncoded?: pulumi.Input<string>;
69
+ /**
70
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
71
+ */
72
+ orgId?: pulumi.Input<string>;
73
+ /**
74
+ * Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options
75
+ * to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when
76
+ * saving it from the Grafana UI. Note that keys in this map are usually camelCased.
77
+ */
78
+ secureJsonDataEncoded?: pulumi.Input<string>;
79
+ /**
80
+ * Unique identifier. If unset, this will be automatically generated.
81
+ */
82
+ uid?: pulumi.Input<string>;
83
+ }
84
+ /**
85
+ * The set of arguments for constructing a DataSourceConfig resource.
86
+ */
87
+ export interface DataSourceConfigArgs {
88
+ /**
89
+ * Custom HTTP headers
90
+ */
91
+ httpHeaders?: pulumi.Input<{
92
+ [key: string]: pulumi.Input<string>;
93
+ }>;
94
+ /**
95
+ * Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data
96
+ * source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it
97
+ * from the Grafana UI. Note that keys in this map are usually camelCased.
98
+ */
99
+ jsonDataEncoded?: pulumi.Input<string>;
100
+ /**
101
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
102
+ */
103
+ orgId?: pulumi.Input<string>;
104
+ /**
105
+ * Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options
106
+ * to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when
107
+ * saving it from the Grafana UI. Note that keys in this map are usually camelCased.
108
+ */
109
+ secureJsonDataEncoded?: pulumi.Input<string>;
110
+ /**
111
+ * Unique identifier. If unset, this will be automatically generated.
112
+ */
113
+ uid?: pulumi.Input<string>;
114
+ }
@@ -0,0 +1,59 @@
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.DataSourceConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class DataSourceConfig extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing DataSourceConfig resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new DataSourceConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of DataSourceConfig. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === DataSourceConfig.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["httpHeaders"] = state ? state.httpHeaders : undefined;
37
+ resourceInputs["jsonDataEncoded"] = state ? state.jsonDataEncoded : undefined;
38
+ resourceInputs["orgId"] = state ? state.orgId : undefined;
39
+ resourceInputs["secureJsonDataEncoded"] = state ? state.secureJsonDataEncoded : undefined;
40
+ resourceInputs["uid"] = state ? state.uid : undefined;
41
+ }
42
+ else {
43
+ const args = argsOrState;
44
+ resourceInputs["httpHeaders"] = (args === null || args === void 0 ? void 0 : args.httpHeaders) ? pulumi.secret(args.httpHeaders) : undefined;
45
+ resourceInputs["jsonDataEncoded"] = args ? args.jsonDataEncoded : undefined;
46
+ resourceInputs["orgId"] = args ? args.orgId : undefined;
47
+ resourceInputs["secureJsonDataEncoded"] = (args === null || args === void 0 ? void 0 : args.secureJsonDataEncoded) ? pulumi.secret(args.secureJsonDataEncoded) : undefined;
48
+ resourceInputs["uid"] = args ? args.uid : undefined;
49
+ }
50
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
51
+ const secretOpts = { additionalSecretOutputs: ["httpHeaders", "secureJsonDataEncoded"] };
52
+ opts = pulumi.mergeOptions(opts, secretOpts);
53
+ super(DataSourceConfig.__pulumiType, name, resourceInputs, opts);
54
+ }
55
+ }
56
+ exports.DataSourceConfig = DataSourceConfig;
57
+ /** @internal */
58
+ DataSourceConfig.__pulumiType = 'grafana:index/dataSourceConfig:DataSourceConfig';
59
+ //# sourceMappingURL=dataSourceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataSourceConfig.js","sourceRoot":"","sources":["../dataSourceConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CA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YACxD,cAAc,CAAC,uBAAuB,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,qBAAqB,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9H,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,EAAE,uBAAuB,CAAC,EAAE,CAAC;QACzF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAnFL,4CAoFC;AAtEG,gBAAgB;AACO,6BAAY,GAAG,iDAAiD,CAAC"}
@@ -18,9 +18,15 @@ export declare class DataSourcePermission extends pulumi.CustomResource {
18
18
  */
19
19
  static isInstance(obj: any): obj is DataSourcePermission;
20
20
  /**
21
- * ID of the datasource to apply permissions to.
21
+ * Deprecated: Use `datasource_uid` instead.
22
+ *
23
+ * @deprecated Use `datasourceUid` instead
22
24
  */
23
25
  readonly datasourceId: pulumi.Output<string>;
26
+ /**
27
+ * UID of the datasource to apply permissions to.
28
+ */
29
+ readonly datasourceUid: pulumi.Output<string>;
24
30
  /**
25
31
  * The Organization ID. If not set, the Org ID defined in the provider block will be used.
26
32
  */
@@ -36,16 +42,22 @@ export declare class DataSourcePermission extends pulumi.CustomResource {
36
42
  * @param args The arguments to use to populate this resource's properties.
37
43
  * @param opts A bag of options that control this resource's behavior.
38
44
  */
39
- constructor(name: string, args: DataSourcePermissionArgs, opts?: pulumi.CustomResourceOptions);
45
+ constructor(name: string, args?: DataSourcePermissionArgs, opts?: pulumi.CustomResourceOptions);
40
46
  }
41
47
  /**
42
48
  * Input properties used for looking up and filtering DataSourcePermission resources.
43
49
  */
44
50
  export interface DataSourcePermissionState {
45
51
  /**
46
- * ID of the datasource to apply permissions to.
52
+ * Deprecated: Use `datasource_uid` instead.
53
+ *
54
+ * @deprecated Use `datasourceUid` instead
47
55
  */
48
56
  datasourceId?: pulumi.Input<string>;
57
+ /**
58
+ * UID of the datasource to apply permissions to.
59
+ */
60
+ datasourceUid?: pulumi.Input<string>;
49
61
  /**
50
62
  * The Organization ID. If not set, the Org ID defined in the provider block will be used.
51
63
  */
@@ -60,9 +72,15 @@ export interface DataSourcePermissionState {
60
72
  */
61
73
  export interface DataSourcePermissionArgs {
62
74
  /**
63
- * ID of the datasource to apply permissions to.
75
+ * Deprecated: Use `datasource_uid` instead.
76
+ *
77
+ * @deprecated Use `datasourceUid` instead
78
+ */
79
+ datasourceId?: pulumi.Input<string>;
80
+ /**
81
+ * UID of the datasource to apply permissions to.
64
82
  */
65
- datasourceId: pulumi.Input<string>;
83
+ datasourceUid?: pulumi.Input<string>;
66
84
  /**
67
85
  * The Organization ID. If not set, the Org ID defined in the provider block will be used.
68
86
  */
@@ -34,15 +34,14 @@ class DataSourcePermission extends pulumi.CustomResource {
34
34
  if (opts.id) {
35
35
  const state = argsOrState;
36
36
  resourceInputs["datasourceId"] = state ? state.datasourceId : undefined;
37
+ resourceInputs["datasourceUid"] = state ? state.datasourceUid : undefined;
37
38
  resourceInputs["orgId"] = state ? state.orgId : undefined;
38
39
  resourceInputs["permissions"] = state ? state.permissions : undefined;
39
40
  }
40
41
  else {
41
42
  const args = argsOrState;
42
- if ((!args || args.datasourceId === undefined) && !opts.urn) {
43
- throw new Error("Missing required property 'datasourceId'");
44
- }
45
43
  resourceInputs["datasourceId"] = args ? args.datasourceId : undefined;
44
+ resourceInputs["datasourceUid"] = args ? args.datasourceUid : undefined;
46
45
  resourceInputs["orgId"] = args ? args.orgId : undefined;
47
46
  resourceInputs["permissions"] = args ? args.permissions : undefined;
48
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dataSourcePermission.js","sourceRoot":"","sources":["../dataSourcePermission.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC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