@pulumi/harness 0.16.7 → 0.16.8

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 (157) hide show
  1. package/autostopping/alert.d.ts +2 -2
  2. package/autostopping/alert.js +2 -2
  3. package/autostopping/gcpProxy.d.ts +4 -4
  4. package/autostopping/gcpProxy.js +4 -4
  5. package/autostopping/ruleEcs.d.ts +4 -4
  6. package/autostopping/ruleEcs.js +4 -4
  7. package/autostopping/ruleRds.d.ts +5 -5
  8. package/autostopping/ruleRds.js +5 -5
  9. package/autostopping/ruleScaleGroup.d.ts +12 -12
  10. package/autostopping/ruleScaleGroup.js +12 -12
  11. package/autostopping/ruleVm.d.ts +22 -22
  12. package/autostopping/ruleVm.js +22 -22
  13. package/chaos/actionTemplate.d.ts +55 -55
  14. package/chaos/actionTemplate.js +55 -55
  15. package/chaos/experimentTemplate.d.ts +84 -84
  16. package/chaos/experimentTemplate.js +84 -84
  17. package/chaos/faultTemplate.d.ts +124 -124
  18. package/chaos/faultTemplate.js +124 -124
  19. package/chaos/imageRegistry.d.ts +6 -6
  20. package/chaos/imageRegistry.js +6 -6
  21. package/chaos/securityGovernanceCondition.d.ts +19 -19
  22. package/chaos/securityGovernanceCondition.js +19 -19
  23. package/chaos/securityGovernanceConditionV3.d.ts +13 -13
  24. package/chaos/securityGovernanceConditionV3.js +13 -13
  25. package/chaos/securityGovernanceRule.d.ts +21 -21
  26. package/chaos/securityGovernanceRule.js +21 -21
  27. package/chaos/securityGovernanceRuleV3.d.ts +9 -9
  28. package/chaos/securityGovernanceRuleV3.js +9 -9
  29. package/cluster/orchestrator.d.ts +1 -1
  30. package/cluster/orchestrator.js +1 -1
  31. package/cluster/orchestratorConfig.d.ts +9 -9
  32. package/cluster/orchestratorConfig.js +9 -9
  33. package/encryptedText.d.ts +3 -3
  34. package/encryptedText.js +3 -3
  35. package/environment.d.ts +7 -7
  36. package/environment.js +7 -7
  37. package/infrastructureDefinition.d.ts +13 -13
  38. package/infrastructureDefinition.js +13 -13
  39. package/package.json +2 -2
  40. package/platform/appDynamicsConnector.d.ts +8 -8
  41. package/platform/appDynamicsConnector.js +8 -8
  42. package/platform/artifactoryConnector.d.ts +12 -12
  43. package/platform/artifactoryConnector.js +12 -12
  44. package/platform/awsCCConnector.d.ts +4 -4
  45. package/platform/awsCCConnector.js +4 -4
  46. package/platform/azureCloudCostConnector.d.ts +12 -12
  47. package/platform/azureCloudCostConnector.js +12 -12
  48. package/platform/azureCloudProviderConnector.d.ts +31 -31
  49. package/platform/azureCloudProviderConnector.js +31 -31
  50. package/platform/bitbucketConnector.d.ts +27 -27
  51. package/platform/bitbucketConnector.js +27 -27
  52. package/platform/connectorCustomhealthsource.d.ts +6 -6
  53. package/platform/connectorCustomhealthsource.js +6 -6
  54. package/platform/connectorGcpKms.d.ts +15 -15
  55. package/platform/connectorGcpKms.js +15 -15
  56. package/platform/connectorRancher.d.ts +3 -3
  57. package/platform/connectorRancher.js +3 -3
  58. package/platform/dbSchema.d.ts +32 -32
  59. package/platform/dbSchema.js +32 -32
  60. package/platform/elasticsearchConnector.d.ts +8 -8
  61. package/platform/elasticsearchConnector.js +8 -8
  62. package/platform/environment.d.ts +11 -11
  63. package/platform/environment.js +11 -11
  64. package/platform/environmentClustersMapping.d.ts +6 -6
  65. package/platform/environmentClustersMapping.js +6 -6
  66. package/platform/filters.d.ts +4 -4
  67. package/platform/filters.js +4 -4
  68. package/platform/gcpCloudCostConnector.d.ts +4 -4
  69. package/platform/gcpCloudCostConnector.js +4 -4
  70. package/platform/gcpSecretManagerConnector.d.ts +8 -8
  71. package/platform/gcpSecretManagerConnector.js +8 -8
  72. package/platform/getEnvironmentClustersMapping.d.ts +12 -12
  73. package/platform/getEnvironmentClustersMapping.js +12 -12
  74. package/platform/getPolicySet.d.ts +8 -8
  75. package/platform/getPolicySet.js +8 -8
  76. package/platform/gitOpsAgent.d.ts +4 -4
  77. package/platform/gitOpsAgent.js +4 -4
  78. package/platform/gitOpsApplications.d.ts +9 -9
  79. package/platform/gitOpsApplications.js +9 -9
  80. package/platform/gitOpsGnupg.d.ts +3 -3
  81. package/platform/gitOpsGnupg.js +3 -3
  82. package/platform/gitOpsRepoCert.d.ts +1 -1
  83. package/platform/gitOpsRepoCert.js +1 -1
  84. package/platform/gitOpsRepoCred.d.ts +5 -5
  85. package/platform/gitOpsRepoCred.js +5 -5
  86. package/platform/gitopsAppProjectMapping.d.ts +12 -0
  87. package/platform/gitopsAppProjectMapping.d.ts.map +1 -1
  88. package/platform/gitopsAppProjectMapping.js +2 -0
  89. package/platform/gitopsAppProjectMapping.js.map +1 -1
  90. package/platform/gitopsApplicationset.d.ts +59 -59
  91. package/platform/gitopsApplicationset.js +59 -59
  92. package/platform/harLifecycleRule.d.ts +20 -20
  93. package/platform/harLifecycleRule.js +20 -20
  94. package/platform/harRegistry.d.ts +69 -69
  95. package/platform/harRegistry.js +69 -69
  96. package/platform/iacmAnsibleInventory.d.ts +11 -11
  97. package/platform/iacmAnsibleInventory.js +11 -11
  98. package/platform/iacmAnsiblePlaybook.d.ts +10 -10
  99. package/platform/iacmAnsiblePlaybook.js +10 -10
  100. package/platform/idpScorecard.d.ts +14 -14
  101. package/platform/idpScorecard.js +14 -14
  102. package/platform/idpScorecardCheck.d.ts +9 -9
  103. package/platform/idpScorecardCheck.js +9 -9
  104. package/platform/infraVariableSet.d.ts +21 -21
  105. package/platform/infraVariableSet.js +21 -21
  106. package/platform/infrastructure.d.ts +7 -7
  107. package/platform/infrastructure.js +7 -7
  108. package/platform/kubernetesConnector.d.ts +17 -17
  109. package/platform/kubernetesConnector.js +17 -17
  110. package/platform/monitoredService.d.ts +123 -123
  111. package/platform/monitoredService.js +123 -123
  112. package/platform/notificationRule.d.ts +10 -10
  113. package/platform/notificationRule.js +10 -10
  114. package/platform/pipeline.d.ts +9 -9
  115. package/platform/pipeline.js +9 -9
  116. package/platform/pipelineCentralNotificationRule.d.ts +22 -22
  117. package/platform/pipelineCentralNotificationRule.js +22 -22
  118. package/platform/pipelineFilters.d.ts +43 -43
  119. package/platform/pipelineFilters.js +43 -43
  120. package/platform/prometheusConnector.d.ts +6 -6
  121. package/platform/prometheusConnector.js +6 -6
  122. package/platform/repo.d.ts +4 -4
  123. package/platform/repo.js +4 -4
  124. package/platform/resourceGroup.d.ts +23 -23
  125. package/platform/resourceGroup.js +23 -23
  126. package/platform/secretFile.d.ts +10 -10
  127. package/platform/secretFile.js +10 -10
  128. package/platform/secretText.d.ts +13 -13
  129. package/platform/secretText.js +13 -13
  130. package/platform/secretWinrm.d.ts +89 -89
  131. package/platform/secretWinrm.js +89 -89
  132. package/platform/service.d.ts +10 -10
  133. package/platform/service.js +10 -10
  134. package/platform/slo.d.ts +17 -17
  135. package/platform/slo.js +17 -17
  136. package/platform/splunkConnector.d.ts +11 -11
  137. package/platform/splunkConnector.js +11 -11
  138. package/platform/templateFilters.d.ts +4 -4
  139. package/platform/templateFilters.js +4 -4
  140. package/platform/usergroup.d.ts +21 -21
  141. package/platform/usergroup.js +21 -21
  142. package/platform/variables.d.ts +4 -4
  143. package/platform/variables.js +4 -4
  144. package/platform/workspace.d.ts +32 -32
  145. package/platform/workspace.js +32 -32
  146. package/platformCcmFilters.d.ts +4 -4
  147. package/platformCcmFilters.js +4 -4
  148. package/service/discoveryAgent.d.ts +62 -62
  149. package/service/discoveryAgent.js +62 -62
  150. package/service/discoverySetting.d.ts +2 -2
  151. package/service/discoverySetting.js +2 -2
  152. package/service/kubernetes.d.ts +4 -4
  153. package/service/kubernetes.js +4 -4
  154. package/sshCredential.d.ts +3 -3
  155. package/sshCredential.js +3 -3
  156. package/userGroup.d.ts +6 -6
  157. package/userGroup.js +6 -6
@@ -39,58 +39,7 @@ const utilities = __importStar(require("../utilities"));
39
39
  *
40
40
  * //Sample template for Elastic Search Log Health Source
41
41
  * const example = new harness.platform.MonitoredService("example", {
42
- * orgId: "org_id",
43
- * projectId: "project_id",
44
- * identifier: "identifier",
45
42
  * request: {
46
- * name: "name",
47
- * type: "Application",
48
- * description: "description",
49
- * serviceRef: "service_ref",
50
- * environmentRef: "environment_ref",
51
- * tags: [
52
- * "foo:bar",
53
- * "bar:foo",
54
- * ],
55
- * healthSources: [{
56
- * name: "name",
57
- * identifier: "identifier",
58
- * type: "ElasticSearch",
59
- * version: "v2",
60
- * spec: JSON.stringify({
61
- * connectorRef: "connectorRef",
62
- * queryDefinitions: [
63
- * {
64
- * name: "name",
65
- * identifier: "infraquery",
66
- * query: "query",
67
- * index: "index",
68
- * groupName: "Logs_Group",
69
- * queryParams: {
70
- * index: "index",
71
- * serviceInstanceField: "serviceInstanceIdentifier",
72
- * timeStampIdentifier: "timeStampIdentifier",
73
- * timeStampFormat: "timeStampFormat",
74
- * messageIdentifier: "messageIdentifier",
75
- * },
76
- * },
77
- * {
78
- * name: "name2",
79
- * identifier: "errorquery",
80
- * query: "query2",
81
- * index: "index2",
82
- * groupName: "Logs_Group",
83
- * queryParams: {
84
- * index: "index",
85
- * serviceInstanceField: "serviceInstanceIdentifier",
86
- * timeStampIdentifier: "timeStampIdentifier",
87
- * timeStampFormat: "timeStampFormat",
88
- * messageIdentifier: "messageIdentifier",
89
- * },
90
- * },
91
- * ],
92
- * }),
93
- * }],
94
43
  * changeSources: [
95
44
  * {
96
45
  * name: "BAC",
@@ -148,6 +97,45 @@ const utilities = __importStar(require("../utilities"));
148
97
  * }),
149
98
  * },
150
99
  * ],
100
+ * healthSources: [{
101
+ * name: "name",
102
+ * identifier: "identifier",
103
+ * type: "ElasticSearch",
104
+ * version: "v2",
105
+ * spec: JSON.stringify({
106
+ * connectorRef: "connectorRef",
107
+ * queryDefinitions: [
108
+ * {
109
+ * name: "name",
110
+ * identifier: "infraquery",
111
+ * query: "query",
112
+ * index: "index",
113
+ * groupName: "Logs_Group",
114
+ * queryParams: {
115
+ * index: "index",
116
+ * serviceInstanceField: "serviceInstanceIdentifier",
117
+ * timeStampIdentifier: "timeStampIdentifier",
118
+ * timeStampFormat: "timeStampFormat",
119
+ * messageIdentifier: "messageIdentifier",
120
+ * },
121
+ * },
122
+ * {
123
+ * name: "name2",
124
+ * identifier: "errorquery",
125
+ * query: "query2",
126
+ * index: "index2",
127
+ * groupName: "Logs_Group",
128
+ * queryParams: {
129
+ * index: "index",
130
+ * serviceInstanceField: "serviceInstanceIdentifier",
131
+ * timeStampIdentifier: "timeStampIdentifier",
132
+ * timeStampFormat: "timeStampFormat",
133
+ * messageIdentifier: "messageIdentifier",
134
+ * },
135
+ * },
136
+ * ],
137
+ * }),
138
+ * }],
151
139
  * notificationRuleRefs: [
152
140
  * {
153
141
  * notificationRuleRef: "notification_rule_ref",
@@ -158,14 +146,6 @@ const utilities = __importStar(require("../utilities"));
158
146
  * enabled: false,
159
147
  * },
160
148
  * ],
161
- * },
162
- * });
163
- * //Sample template for Sumologic Metrics Health Source
164
- * const example1 = new harness.platform.MonitoredService("example1", {
165
- * orgId: "org_id",
166
- * projectId: "project_id",
167
- * identifier: "identifier",
168
- * request: {
169
149
  * name: "name",
170
150
  * type: "Application",
171
151
  * description: "description",
@@ -175,6 +155,14 @@ const utilities = __importStar(require("../utilities"));
175
155
  * "foo:bar",
176
156
  * "bar:foo",
177
157
  * ],
158
+ * },
159
+ * orgId: "org_id",
160
+ * projectId: "project_id",
161
+ * identifier: "identifier",
162
+ * });
163
+ * //Sample template for Sumologic Metrics Health Source
164
+ * const example1 = new harness.platform.MonitoredService("example1", {
165
+ * request: {
178
166
  * healthSources: [{
179
167
  * name: "sumologicmetrics",
180
168
  * identifier: "sumo_metric_identifier",
@@ -251,14 +239,6 @@ const utilities = __importStar(require("../utilities"));
251
239
  * ],
252
240
  * }),
253
241
  * }],
254
- * },
255
- * });
256
- * //Sample template for Sumologic Log Health Source
257
- * const example2 = new harness.platform.MonitoredService("example2", {
258
- * orgId: "org_id",
259
- * projectId: "project_id",
260
- * identifier: "identifier",
261
- * request: {
262
242
  * name: "name",
263
243
  * type: "Application",
264
244
  * description: "description",
@@ -268,6 +248,14 @@ const utilities = __importStar(require("../utilities"));
268
248
  * "foo:bar",
269
249
  * "bar:foo",
270
250
  * ],
251
+ * },
252
+ * orgId: "org_id",
253
+ * projectId: "project_id",
254
+ * identifier: "identifier",
255
+ * });
256
+ * //Sample template for Sumologic Log Health Source
257
+ * const example2 = new harness.platform.MonitoredService("example2", {
258
+ * request: {
271
259
  * healthSources: [{
272
260
  * name: "sumologic",
273
261
  * identifier: "sumo_metric_identifier",
@@ -297,14 +285,6 @@ const utilities = __importStar(require("../utilities"));
297
285
  * ],
298
286
  * }),
299
287
  * }],
300
- * },
301
- * });
302
- * //Sample template for Splunk Signal FX Health Source
303
- * const example3 = new harness.platform.MonitoredService("example3", {
304
- * orgId: "org_id",
305
- * projectId: "project_id",
306
- * identifier: "identifier",
307
- * request: {
308
288
  * name: "name",
309
289
  * type: "Application",
310
290
  * description: "description",
@@ -314,6 +294,14 @@ const utilities = __importStar(require("../utilities"));
314
294
  * "foo:bar",
315
295
  * "bar:foo",
316
296
  * ],
297
+ * },
298
+ * orgId: "org_id",
299
+ * projectId: "project_id",
300
+ * identifier: "identifier",
301
+ * });
302
+ * //Sample template for Splunk Signal FX Health Source
303
+ * const example3 = new harness.platform.MonitoredService("example3", {
304
+ * request: {
317
305
  * healthSources: [{
318
306
  * name: "signalfxmetrics",
319
307
  * identifier: "signalfxmetrics",
@@ -387,14 +375,6 @@ const utilities = __importStar(require("../utilities"));
387
375
  * ],
388
376
  * }),
389
377
  * }],
390
- * },
391
- * });
392
- * //Sample template for Grafana Loki Log Health Source
393
- * const example4 = new harness.platform.MonitoredService("example4", {
394
- * orgId: "org_id",
395
- * projectId: "project_id",
396
- * identifier: "identifier",
397
- * request: {
398
378
  * name: "name",
399
379
  * type: "Application",
400
380
  * description: "description",
@@ -404,6 +384,14 @@ const utilities = __importStar(require("../utilities"));
404
384
  * "foo:bar",
405
385
  * "bar:foo",
406
386
  * ],
387
+ * },
388
+ * orgId: "org_id",
389
+ * projectId: "project_id",
390
+ * identifier: "identifier",
391
+ * });
392
+ * //Sample template for Grafana Loki Log Health Source
393
+ * const example4 = new harness.platform.MonitoredService("example4", {
394
+ * request: {
407
395
  * healthSources: [{
408
396
  * name: "Test",
409
397
  * identifier: "Test",
@@ -436,14 +424,6 @@ const utilities = __importStar(require("../utilities"));
436
424
  * ],
437
425
  * }),
438
426
  * }],
439
- * },
440
- * });
441
- * //Sample template for Azure Metrics Health Source
442
- * const example5 = new harness.platform.MonitoredService("example5", {
443
- * orgId: "org_id",
444
- * projectId: "project_id",
445
- * identifier: "identifier",
446
- * request: {
447
427
  * name: "name",
448
428
  * type: "Application",
449
429
  * description: "description",
@@ -453,6 +433,14 @@ const utilities = __importStar(require("../utilities"));
453
433
  * "foo:bar",
454
434
  * "bar:foo",
455
435
  * ],
436
+ * },
437
+ * orgId: "org_id",
438
+ * projectId: "project_id",
439
+ * identifier: "identifier",
440
+ * });
441
+ * //Sample template for Azure Metrics Health Source
442
+ * const example5 = new harness.platform.MonitoredService("example5", {
443
+ * request: {
456
444
  * healthSources: [{
457
445
  * name: "azure metrics verify step",
458
446
  * identifier: "azure_metrics_verify_step",
@@ -536,14 +524,6 @@ const utilities = __importStar(require("../utilities"));
536
524
  * ],
537
525
  * }),
538
526
  * }],
539
- * },
540
- * });
541
- * //Sample template for Azure Log Health Source
542
- * const example6 = new harness.platform.MonitoredService("example6", {
543
- * orgId: "org_id",
544
- * projectId: "project_id",
545
- * identifier: "identifier",
546
- * request: {
547
527
  * name: "name",
548
528
  * type: "Application",
549
529
  * description: "description",
@@ -553,6 +533,14 @@ const utilities = __importStar(require("../utilities"));
553
533
  * "foo:bar",
554
534
  * "bar:foo",
555
535
  * ],
536
+ * },
537
+ * orgId: "org_id",
538
+ * projectId: "project_id",
539
+ * identifier: "identifier",
540
+ * });
541
+ * //Sample template for Azure Log Health Source
542
+ * const example6 = new harness.platform.MonitoredService("example6", {
543
+ * request: {
556
544
  * healthSources: [{
557
545
  * name: "Demo azure",
558
546
  * identifier: "Demo_azure",
@@ -576,14 +564,6 @@ const utilities = __importStar(require("../utilities"));
576
564
  * }],
577
565
  * }),
578
566
  * }],
579
- * },
580
- * });
581
- * //Sample template for Prometheus Metrics Health Source
582
- * const example7 = new harness.platform.MonitoredService("example7", {
583
- * orgId: "org_id",
584
- * projectId: "project_id",
585
- * identifier: "identifier",
586
- * request: {
587
567
  * name: "name",
588
568
  * type: "Application",
589
569
  * description: "description",
@@ -593,6 +573,14 @@ const utilities = __importStar(require("../utilities"));
593
573
  * "foo:bar",
594
574
  * "bar:foo",
595
575
  * ],
576
+ * },
577
+ * orgId: "org_id",
578
+ * projectId: "project_id",
579
+ * identifier: "identifier",
580
+ * });
581
+ * //Sample template for Prometheus Metrics Health Source
582
+ * const example7 = new harness.platform.MonitoredService("example7", {
583
+ * request: {
596
584
  * healthSources: [{
597
585
  * name: "prometheus metrics verify step",
598
586
  * identifier: "prometheus_metrics",
@@ -657,14 +645,6 @@ const utilities = __importStar(require("../utilities"));
657
645
  * }],
658
646
  * }),
659
647
  * }],
660
- * },
661
- * });
662
- * //Sample template for Datadog Metrics Health Source
663
- * const example8 = new harness.platform.MonitoredService("example8", {
664
- * orgId: "org_id",
665
- * projectId: "project_id",
666
- * identifier: "identifier",
667
- * request: {
668
648
  * name: "name",
669
649
  * type: "Application",
670
650
  * description: "description",
@@ -674,6 +654,14 @@ const utilities = __importStar(require("../utilities"));
674
654
  * "foo:bar",
675
655
  * "bar:foo",
676
656
  * ],
657
+ * },
658
+ * orgId: "org_id",
659
+ * projectId: "project_id",
660
+ * identifier: "identifier",
661
+ * });
662
+ * //Sample template for Datadog Metrics Health Source
663
+ * const example8 = new harness.platform.MonitoredService("example8", {
664
+ * request: {
677
665
  * healthSources: [{
678
666
  * name: "ddm",
679
667
  * identifier: "ddm",
@@ -771,14 +759,6 @@ const utilities = __importStar(require("../utilities"));
771
759
  * }],
772
760
  * }),
773
761
  * }],
774
- * },
775
- * });
776
- * //Sample template for New Relic Metrics Health Source
777
- * const example9 = new harness.platform.MonitoredService("example9", {
778
- * orgId: "org_id",
779
- * projectId: "project_id",
780
- * identifier: "identifier",
781
- * request: {
782
762
  * name: "name",
783
763
  * type: "Application",
784
764
  * description: "description",
@@ -788,6 +768,14 @@ const utilities = __importStar(require("../utilities"));
788
768
  * "foo:bar",
789
769
  * "bar:foo",
790
770
  * ],
771
+ * },
772
+ * orgId: "org_id",
773
+ * projectId: "project_id",
774
+ * identifier: "identifier",
775
+ * });
776
+ * //Sample template for New Relic Metrics Health Source
777
+ * const example9 = new harness.platform.MonitoredService("example9", {
778
+ * request: {
791
779
  * healthSources: [{
792
780
  * name: "name",
793
781
  * identifier: "identifier",
@@ -860,7 +848,19 @@ const utilities = __importStar(require("../utilities"));
860
848
  * }],
861
849
  * }),
862
850
  * }],
851
+ * name: "name",
852
+ * type: "Application",
853
+ * description: "description",
854
+ * serviceRef: "service_ref",
855
+ * environmentRef: "environment_ref",
856
+ * tags: [
857
+ * "foo:bar",
858
+ * "bar:foo",
859
+ * ],
863
860
  * },
861
+ * orgId: "org_id",
862
+ * projectId: "project_id",
863
+ * identifier: "identifier",
864
864
  * });
865
865
  * ```
866
866
  *
@@ -12,11 +12,7 @@ import * as outputs from "../types/output";
12
12
  *
13
13
  * // Sample resource for SLO
14
14
  * const example = new harness.platform.NotificationRule("example", {
15
- * orgId: "org_id",
16
- * projectId: "project_id",
17
- * identifier: "identifier",
18
15
  * request: {
19
- * name: "name",
20
16
  * notificationMethod: {
21
17
  * type: "Slack",
22
18
  * spec: JSON.stringify({
@@ -24,7 +20,6 @@ import * as outputs from "../types/output";
24
20
  * user_groups: ["account.test"],
25
21
  * }),
26
22
  * },
27
- * type: "ServiceLevelObjective",
28
23
  * conditions: [
29
24
  * {
30
25
  * type: "ErrorBudgetBurnRate",
@@ -45,15 +40,16 @@ import * as outputs from "../types/output";
45
40
  * }),
46
41
  * },
47
42
  * ],
43
+ * name: "name",
44
+ * type: "ServiceLevelObjective",
48
45
  * },
49
- * });
50
- * // Sample resource for Monitored Service
51
- * const example1 = new harness.platform.NotificationRule("example1", {
52
46
  * orgId: "org_id",
53
47
  * projectId: "project_id",
54
48
  * identifier: "identifier",
49
+ * });
50
+ * // Sample resource for Monitored Service
51
+ * const example1 = new harness.platform.NotificationRule("example1", {
55
52
  * request: {
56
- * name: "name",
57
53
  * notificationMethod: {
58
54
  * type: "Slack",
59
55
  * spec: JSON.stringify({
@@ -61,7 +57,6 @@ import * as outputs from "../types/output";
61
57
  * user_groups: ["account.test"],
62
58
  * }),
63
59
  * },
64
- * type: "MonitoredService",
65
60
  * conditions: [
66
61
  * {
67
62
  * type: "ChangeImpact",
@@ -96,7 +91,12 @@ import * as outputs from "../types/output";
96
91
  * spec: JSON.stringify({}),
97
92
  * },
98
93
  * ],
94
+ * name: "name",
95
+ * type: "MonitoredService",
99
96
  * },
97
+ * orgId: "org_id",
98
+ * projectId: "project_id",
99
+ * identifier: "identifier",
100
100
  * });
101
101
  * ```
102
102
  *
@@ -39,11 +39,7 @@ const utilities = __importStar(require("../utilities"));
39
39
  *
40
40
  * // Sample resource for SLO
41
41
  * const example = new harness.platform.NotificationRule("example", {
42
- * orgId: "org_id",
43
- * projectId: "project_id",
44
- * identifier: "identifier",
45
42
  * request: {
46
- * name: "name",
47
43
  * notificationMethod: {
48
44
  * type: "Slack",
49
45
  * spec: JSON.stringify({
@@ -51,7 +47,6 @@ const utilities = __importStar(require("../utilities"));
51
47
  * user_groups: ["account.test"],
52
48
  * }),
53
49
  * },
54
- * type: "ServiceLevelObjective",
55
50
  * conditions: [
56
51
  * {
57
52
  * type: "ErrorBudgetBurnRate",
@@ -72,15 +67,16 @@ const utilities = __importStar(require("../utilities"));
72
67
  * }),
73
68
  * },
74
69
  * ],
70
+ * name: "name",
71
+ * type: "ServiceLevelObjective",
75
72
  * },
76
- * });
77
- * // Sample resource for Monitored Service
78
- * const example1 = new harness.platform.NotificationRule("example1", {
79
73
  * orgId: "org_id",
80
74
  * projectId: "project_id",
81
75
  * identifier: "identifier",
76
+ * });
77
+ * // Sample resource for Monitored Service
78
+ * const example1 = new harness.platform.NotificationRule("example1", {
82
79
  * request: {
83
- * name: "name",
84
80
  * notificationMethod: {
85
81
  * type: "Slack",
86
82
  * spec: JSON.stringify({
@@ -88,7 +84,6 @@ const utilities = __importStar(require("../utilities"));
88
84
  * user_groups: ["account.test"],
89
85
  * }),
90
86
  * },
91
- * type: "MonitoredService",
92
87
  * conditions: [
93
88
  * {
94
89
  * type: "ChangeImpact",
@@ -123,7 +118,12 @@ const utilities = __importStar(require("../utilities"));
123
118
  * spec: JSON.stringify({}),
124
119
  * },
125
120
  * ],
121
+ * name: "name",
122
+ * type: "MonitoredService",
126
123
  * },
124
+ * orgId: "org_id",
125
+ * projectId: "project_id",
126
+ * identifier: "identifier",
127
127
  * });
128
128
  * ```
129
129
  *
@@ -11,10 +11,6 @@ import * as outputs from "../types/output";
11
11
  * import * as harness from "@pulumi/harness";
12
12
  *
13
13
  * const example = new harness.platform.Pipeline("example", {
14
- * identifier: "identifier",
15
- * orgId: "orgIdentifier",
16
- * projectId: "projectIdentifier",
17
- * name: "name",
18
14
  * gitDetails: {
19
15
  * branchName: "branchName",
20
16
  * commitMessage: "commitMessage",
@@ -23,6 +19,10 @@ import * as outputs from "../types/output";
23
19
  * storeType: "REMOTE",
24
20
  * repoName: "repoName",
25
21
  * },
22
+ * identifier: "identifier",
23
+ * orgId: "orgIdentifier",
24
+ * projectId: "projectIdentifier",
25
+ * name: "name",
26
26
  * tags: {},
27
27
  * yaml: `pipeline:
28
28
  * name: name
@@ -117,11 +117,6 @@ import * as outputs from "../types/output";
117
117
  * name: "name",
118
118
  * });
119
119
  * const testPipeline = new harness.platform.Pipeline("test", {
120
- * identifier: "gitx",
121
- * orgId: "default",
122
- * projectId: "V",
123
- * name: "gitx",
124
- * importFromGit: true,
125
120
  * gitImportInfo: {
126
121
  * branchName: "main",
127
122
  * filePath: ".harness/gitx.yaml",
@@ -133,6 +128,11 @@ import * as outputs from "../types/output";
133
128
  * pipelineName: "gitx",
134
129
  * pipelineDescription: "Pipeline Description",
135
130
  * },
131
+ * identifier: "gitx",
132
+ * orgId: "default",
133
+ * projectId: "V",
134
+ * name: "gitx",
135
+ * importFromGit: true,
136
136
  * });
137
137
  * ```
138
138
  *
@@ -38,10 +38,6 @@ const utilities = __importStar(require("../utilities"));
38
38
  * import * as harness from "@pulumi/harness";
39
39
  *
40
40
  * const example = new harness.platform.Pipeline("example", {
41
- * identifier: "identifier",
42
- * orgId: "orgIdentifier",
43
- * projectId: "projectIdentifier",
44
- * name: "name",
45
41
  * gitDetails: {
46
42
  * branchName: "branchName",
47
43
  * commitMessage: "commitMessage",
@@ -50,6 +46,10 @@ const utilities = __importStar(require("../utilities"));
50
46
  * storeType: "REMOTE",
51
47
  * repoName: "repoName",
52
48
  * },
49
+ * identifier: "identifier",
50
+ * orgId: "orgIdentifier",
51
+ * projectId: "projectIdentifier",
52
+ * name: "name",
53
53
  * tags: {},
54
54
  * yaml: `pipeline:
55
55
  * name: name
@@ -144,11 +144,6 @@ const utilities = __importStar(require("../utilities"));
144
144
  * name: "name",
145
145
  * });
146
146
  * const testPipeline = new harness.platform.Pipeline("test", {
147
- * identifier: "gitx",
148
- * orgId: "default",
149
- * projectId: "V",
150
- * name: "gitx",
151
- * importFromGit: true,
152
147
  * gitImportInfo: {
153
148
  * branchName: "main",
154
149
  * filePath: ".harness/gitx.yaml",
@@ -160,6 +155,11 @@ const utilities = __importStar(require("../utilities"));
160
155
  * pipelineName: "gitx",
161
156
  * pipelineDescription: "Pipeline Description",
162
157
  * },
158
+ * identifier: "gitx",
159
+ * orgId: "default",
160
+ * projectId: "V",
161
+ * name: "gitx",
162
+ * importFromGit: true,
163
163
  * });
164
164
  * ```
165
165
  *
@@ -11,36 +11,28 @@ import * as outputs from "../types/output";
11
11
  * import * as harness from "@pulumi/harness";
12
12
  *
13
13
  * const projExample = new harness.platform.PipelineCentralNotificationRule("projExample", {
14
- * identifier: "identifier",
15
- * name: "name",
16
- * status: "ENABLED",
17
- * notificationChannelRefs: ["account.channel"],
18
- * org: "default",
19
- * project: "proj0",
20
14
  * notificationConditions: [{
21
- * conditionName: "pipelineRuleProjectConditionName",
22
15
  * notificationEventConfigs: [{
23
- * notificationEntity: "PIPELINE",
24
- * notificationEvent: "PIPELINE_START",
25
16
  * notificationEventDatas: [{
26
17
  * type: "PIPELINE",
27
18
  * scopeIdentifiers: [],
28
19
  * }],
20
+ * notificationEntity: "PIPELINE",
21
+ * notificationEvent: "PIPELINE_START",
29
22
  * entityIdentifiers: [],
30
23
  * }],
24
+ * conditionName: "pipelineRuleProjectConditionName",
31
25
  * }],
32
- * });
33
- * const orgExample = new harness.platform.PipelineCentralNotificationRule("orgExample", {
34
26
  * identifier: "identifier",
35
27
  * name: "name",
36
28
  * status: "ENABLED",
37
- * notificationChannelRefs: ["channel"],
29
+ * notificationChannelRefs: ["account.channel"],
38
30
  * org: "default",
31
+ * project: "proj0",
32
+ * });
33
+ * const orgExample = new harness.platform.PipelineCentralNotificationRule("orgExample", {
39
34
  * notificationConditions: [{
40
- * conditionName: "pipelineRuleOrgConditionName",
41
35
  * notificationEventConfigs: [{
42
- * notificationEntity: "PIPELINE",
43
- * notificationEvent: "PIPELINE_START",
44
36
  * notificationEventDatas: [{
45
37
  * type: "PIPELINE",
46
38
  * scopeIdentifiers: [
@@ -48,27 +40,35 @@ import * as outputs from "../types/output";
48
40
  * "random",
49
41
  * ],
50
42
  * }],
43
+ * notificationEntity: "PIPELINE",
44
+ * notificationEvent: "PIPELINE_START",
51
45
  * entityIdentifiers: [],
52
46
  * }],
47
+ * conditionName: "pipelineRuleOrgConditionName",
53
48
  * }],
54
- * });
55
- * const accountExample = new harness.platform.PipelineCentralNotificationRule("accountExample", {
56
49
  * identifier: "identifier",
57
50
  * name: "name",
58
- * status: "DISABLED",
59
- * notificationChannelRefs: ["org.channel"],
51
+ * status: "ENABLED",
52
+ * notificationChannelRefs: ["channel"],
53
+ * org: "default",
54
+ * });
55
+ * const accountExample = new harness.platform.PipelineCentralNotificationRule("accountExample", {
60
56
  * notificationConditions: [{
61
- * conditionName: "pipelineRuleConditionName",
62
57
  * notificationEventConfigs: [{
63
- * notificationEntity: "PIPELINE",
64
- * notificationEvent: "PIPELINE_START",
65
58
  * notificationEventDatas: [{
66
59
  * type: "PIPELINE",
67
60
  * scopeIdentifiers: ["org"],
68
61
  * }],
62
+ * notificationEntity: "PIPELINE",
63
+ * notificationEvent: "PIPELINE_START",
69
64
  * entityIdentifiers: [],
70
65
  * }],
66
+ * conditionName: "pipelineRuleConditionName",
71
67
  * }],
68
+ * identifier: "identifier",
69
+ * name: "name",
70
+ * status: "DISABLED",
71
+ * notificationChannelRefs: ["org.channel"],
72
72
  * });
73
73
  * ```
74
74
  *