@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
@@ -12,23 +12,12 @@ import * as outputs from "../types/output";
12
12
  *
13
13
  * // Example 1: Cluster Generator
14
14
  * const clusterGenerator = new harness.platform.GitopsApplicationset("cluster_generator", {
15
- * orgId: "default",
16
- * projectId: "projectId",
17
- * agentId: "account.agentuseast1",
18
- * upsert: true,
19
15
  * applicationset: {
20
16
  * metadata: {
21
17
  * name: "cluster-appset",
22
18
  * namespace: "argocd",
23
19
  * },
24
20
  * spec: {
25
- * goTemplate: true,
26
- * goTemplateOptions: ["missingkey=error"],
27
- * generators: [{
28
- * clusters: [{
29
- * enabled: true,
30
- * }],
31
- * }],
32
21
  * template: {
33
22
  * metadata: {
34
23
  * name: "{{.name}}-guestbook",
@@ -37,7 +26,6 @@ import * as outputs from "../types/output";
37
26
  * },
38
27
  * },
39
28
  * spec: {
40
- * project: "default",
41
29
  * source: {
42
30
  * repoUrl: "https://github.com/argoproj/argocd-example-apps.git",
43
31
  * path: "helm-guestbook",
@@ -47,44 +35,35 @@ import * as outputs from "../types/output";
47
35
  * server: "{{.url}}",
48
36
  * namespace: "app-ns-{{.name}}",
49
37
  * },
38
+ * project: "default",
50
39
  * },
51
40
  * },
41
+ * generators: [{
42
+ * clusters: [{
43
+ * enabled: true,
44
+ * }],
45
+ * }],
46
+ * goTemplate: true,
47
+ * goTemplateOptions: ["missingkey=error"],
52
48
  * },
53
49
  * },
54
- * });
55
- * // Example 2: List Generator
56
- * const listGenerator = new harness.platform.GitopsApplicationset("list_generator", {
57
50
  * orgId: "default",
58
51
  * projectId: "projectId",
59
52
  * agentId: "account.agentuseast1",
60
53
  * upsert: true,
54
+ * });
55
+ * // Example 2: List Generator
56
+ * const listGenerator = new harness.platform.GitopsApplicationset("list_generator", {
61
57
  * applicationset: {
62
58
  * metadata: {
63
59
  * name: "list-appset",
64
60
  * },
65
61
  * spec: {
66
- * goTemplate: true,
67
- * goTemplateOptions: ["missingkey=error"],
68
- * generators: [{
69
- * lists: [{
70
- * elements: [
71
- * {
72
- * cluster: "engineering-dev",
73
- * url: "https://kubernetes.default.svc",
74
- * },
75
- * {
76
- * cluster: "engineering-prod",
77
- * url: "https://kubernetes.prod.svc",
78
- * },
79
- * ],
80
- * }],
81
- * }],
82
62
  * template: {
83
63
  * metadata: {
84
64
  * name: "{{.cluster}}-guestbook",
85
65
  * },
86
66
  * spec: {
87
- * project: "default",
88
67
  * source: {
89
68
  * repoUrl: "https://github.com/argoproj/argocd-example-apps.git",
90
69
  * path: "helm-guestbook",
@@ -94,37 +73,44 @@ import * as outputs from "../types/output";
94
73
  * server: "{{.url}}",
95
74
  * namespace: "default",
96
75
  * },
76
+ * project: "default",
97
77
  * },
98
78
  * },
79
+ * generators: [{
80
+ * lists: [{
81
+ * elements: [
82
+ * {
83
+ * cluster: "engineering-dev",
84
+ * url: "https://kubernetes.default.svc",
85
+ * },
86
+ * {
87
+ * cluster: "engineering-prod",
88
+ * url: "https://kubernetes.prod.svc",
89
+ * },
90
+ * ],
91
+ * }],
92
+ * }],
93
+ * goTemplate: true,
94
+ * goTemplateOptions: ["missingkey=error"],
99
95
  * },
100
96
  * },
101
- * });
102
- * // Example 3: Git Generator with Files
103
- * const gitFiles = new harness.platform.GitopsApplicationset("git_files", {
104
97
  * orgId: "default",
105
98
  * projectId: "projectId",
106
99
  * agentId: "account.agentuseast1",
107
100
  * upsert: true,
101
+ * });
102
+ * // Example 3: Git Generator with Files
103
+ * const gitFiles = new harness.platform.GitopsApplicationset("git_files", {
108
104
  * applicationset: {
109
105
  * metadata: {
110
106
  * name: "git-files-appset",
111
107
  * },
112
108
  * spec: {
113
- * generators: [{
114
- * gits: [{
115
- * repoUrl: "https://github.com/example/config-repo",
116
- * revision: "main",
117
- * files: [{
118
- * path: "apps/*/config.json",
119
- * }],
120
- * }],
121
- * }],
122
109
  * template: {
123
110
  * metadata: {
124
111
  * name: "{{.path.basename}}-app",
125
112
  * },
126
113
  * spec: {
127
- * project: "default",
128
114
  * source: {
129
115
  * repoUrl: "https://github.com/example/app-repo",
130
116
  * path: "{{.path.path}}",
@@ -134,38 +120,37 @@ import * as outputs from "../types/output";
134
120
  * server: "https://kubernetes.default.svc",
135
121
  * namespace: "{{.path.basename}}",
136
122
  * },
123
+ * project: "default",
137
124
  * },
138
125
  * },
126
+ * generators: [{
127
+ * gits: [{
128
+ * files: [{
129
+ * path: "apps/*/config.json",
130
+ * }],
131
+ * repoUrl: "https://github.com/example/config-repo",
132
+ * revision: "main",
133
+ * }],
134
+ * }],
139
135
  * },
140
136
  * },
141
- * });
142
- * // Example 4: Git Generator with Directories
143
- * const gitDirectories = new harness.platform.GitopsApplicationset("git_directories", {
144
137
  * orgId: "default",
145
138
  * projectId: "projectId",
146
139
  * agentId: "account.agentuseast1",
147
140
  * upsert: true,
141
+ * });
142
+ * // Example 4: Git Generator with Directories
143
+ * const gitDirectories = new harness.platform.GitopsApplicationset("git_directories", {
148
144
  * applicationset: {
149
145
  * metadata: {
150
146
  * name: "git-directories-appset",
151
147
  * },
152
148
  * spec: {
153
- * generators: [{
154
- * gits: [{
155
- * repoUrl: "https://github.com/argoproj/argo-cd.git",
156
- * revision: "HEAD",
157
- * directories: [{
158
- * path: "applicationset/examples/git-generator-directory/cluster-addons/*",
159
- * exclude: false,
160
- * }],
161
- * }],
162
- * }],
163
149
  * template: {
164
150
  * metadata: {
165
151
  * name: "{{.path.basename}}-addon",
166
152
  * },
167
153
  * spec: {
168
- * project: "default",
169
154
  * source: {
170
155
  * repoUrl: "https://github.com/argoproj/argo-cd.git",
171
156
  * path: "{{.path.path}}",
@@ -181,10 +166,25 @@ import * as outputs from "../types/output";
181
166
  * selfHeal: true,
182
167
  * },
183
168
  * },
169
+ * project: "default",
184
170
  * },
185
171
  * },
172
+ * generators: [{
173
+ * gits: [{
174
+ * directories: [{
175
+ * path: "applicationset/examples/git-generator-directory/cluster-addons/*",
176
+ * exclude: false,
177
+ * }],
178
+ * repoUrl: "https://github.com/argoproj/argo-cd.git",
179
+ * revision: "HEAD",
180
+ * }],
181
+ * }],
186
182
  * },
187
183
  * },
184
+ * orgId: "default",
185
+ * projectId: "projectId",
186
+ * agentId: "account.agentuseast1",
187
+ * upsert: true,
188
188
  * });
189
189
  * ```
190
190
  *
@@ -39,23 +39,12 @@ const utilities = __importStar(require("../utilities"));
39
39
  *
40
40
  * // Example 1: Cluster Generator
41
41
  * const clusterGenerator = new harness.platform.GitopsApplicationset("cluster_generator", {
42
- * orgId: "default",
43
- * projectId: "projectId",
44
- * agentId: "account.agentuseast1",
45
- * upsert: true,
46
42
  * applicationset: {
47
43
  * metadata: {
48
44
  * name: "cluster-appset",
49
45
  * namespace: "argocd",
50
46
  * },
51
47
  * spec: {
52
- * goTemplate: true,
53
- * goTemplateOptions: ["missingkey=error"],
54
- * generators: [{
55
- * clusters: [{
56
- * enabled: true,
57
- * }],
58
- * }],
59
48
  * template: {
60
49
  * metadata: {
61
50
  * name: "{{.name}}-guestbook",
@@ -64,7 +53,6 @@ const utilities = __importStar(require("../utilities"));
64
53
  * },
65
54
  * },
66
55
  * spec: {
67
- * project: "default",
68
56
  * source: {
69
57
  * repoUrl: "https://github.com/argoproj/argocd-example-apps.git",
70
58
  * path: "helm-guestbook",
@@ -74,44 +62,35 @@ const utilities = __importStar(require("../utilities"));
74
62
  * server: "{{.url}}",
75
63
  * namespace: "app-ns-{{.name}}",
76
64
  * },
65
+ * project: "default",
77
66
  * },
78
67
  * },
68
+ * generators: [{
69
+ * clusters: [{
70
+ * enabled: true,
71
+ * }],
72
+ * }],
73
+ * goTemplate: true,
74
+ * goTemplateOptions: ["missingkey=error"],
79
75
  * },
80
76
  * },
81
- * });
82
- * // Example 2: List Generator
83
- * const listGenerator = new harness.platform.GitopsApplicationset("list_generator", {
84
77
  * orgId: "default",
85
78
  * projectId: "projectId",
86
79
  * agentId: "account.agentuseast1",
87
80
  * upsert: true,
81
+ * });
82
+ * // Example 2: List Generator
83
+ * const listGenerator = new harness.platform.GitopsApplicationset("list_generator", {
88
84
  * applicationset: {
89
85
  * metadata: {
90
86
  * name: "list-appset",
91
87
  * },
92
88
  * spec: {
93
- * goTemplate: true,
94
- * goTemplateOptions: ["missingkey=error"],
95
- * generators: [{
96
- * lists: [{
97
- * elements: [
98
- * {
99
- * cluster: "engineering-dev",
100
- * url: "https://kubernetes.default.svc",
101
- * },
102
- * {
103
- * cluster: "engineering-prod",
104
- * url: "https://kubernetes.prod.svc",
105
- * },
106
- * ],
107
- * }],
108
- * }],
109
89
  * template: {
110
90
  * metadata: {
111
91
  * name: "{{.cluster}}-guestbook",
112
92
  * },
113
93
  * spec: {
114
- * project: "default",
115
94
  * source: {
116
95
  * repoUrl: "https://github.com/argoproj/argocd-example-apps.git",
117
96
  * path: "helm-guestbook",
@@ -121,37 +100,44 @@ const utilities = __importStar(require("../utilities"));
121
100
  * server: "{{.url}}",
122
101
  * namespace: "default",
123
102
  * },
103
+ * project: "default",
124
104
  * },
125
105
  * },
106
+ * generators: [{
107
+ * lists: [{
108
+ * elements: [
109
+ * {
110
+ * cluster: "engineering-dev",
111
+ * url: "https://kubernetes.default.svc",
112
+ * },
113
+ * {
114
+ * cluster: "engineering-prod",
115
+ * url: "https://kubernetes.prod.svc",
116
+ * },
117
+ * ],
118
+ * }],
119
+ * }],
120
+ * goTemplate: true,
121
+ * goTemplateOptions: ["missingkey=error"],
126
122
  * },
127
123
  * },
128
- * });
129
- * // Example 3: Git Generator with Files
130
- * const gitFiles = new harness.platform.GitopsApplicationset("git_files", {
131
124
  * orgId: "default",
132
125
  * projectId: "projectId",
133
126
  * agentId: "account.agentuseast1",
134
127
  * upsert: true,
128
+ * });
129
+ * // Example 3: Git Generator with Files
130
+ * const gitFiles = new harness.platform.GitopsApplicationset("git_files", {
135
131
  * applicationset: {
136
132
  * metadata: {
137
133
  * name: "git-files-appset",
138
134
  * },
139
135
  * spec: {
140
- * generators: [{
141
- * gits: [{
142
- * repoUrl: "https://github.com/example/config-repo",
143
- * revision: "main",
144
- * files: [{
145
- * path: "apps/*/config.json",
146
- * }],
147
- * }],
148
- * }],
149
136
  * template: {
150
137
  * metadata: {
151
138
  * name: "{{.path.basename}}-app",
152
139
  * },
153
140
  * spec: {
154
- * project: "default",
155
141
  * source: {
156
142
  * repoUrl: "https://github.com/example/app-repo",
157
143
  * path: "{{.path.path}}",
@@ -161,38 +147,37 @@ const utilities = __importStar(require("../utilities"));
161
147
  * server: "https://kubernetes.default.svc",
162
148
  * namespace: "{{.path.basename}}",
163
149
  * },
150
+ * project: "default",
164
151
  * },
165
152
  * },
153
+ * generators: [{
154
+ * gits: [{
155
+ * files: [{
156
+ * path: "apps/*/config.json",
157
+ * }],
158
+ * repoUrl: "https://github.com/example/config-repo",
159
+ * revision: "main",
160
+ * }],
161
+ * }],
166
162
  * },
167
163
  * },
168
- * });
169
- * // Example 4: Git Generator with Directories
170
- * const gitDirectories = new harness.platform.GitopsApplicationset("git_directories", {
171
164
  * orgId: "default",
172
165
  * projectId: "projectId",
173
166
  * agentId: "account.agentuseast1",
174
167
  * upsert: true,
168
+ * });
169
+ * // Example 4: Git Generator with Directories
170
+ * const gitDirectories = new harness.platform.GitopsApplicationset("git_directories", {
175
171
  * applicationset: {
176
172
  * metadata: {
177
173
  * name: "git-directories-appset",
178
174
  * },
179
175
  * spec: {
180
- * generators: [{
181
- * gits: [{
182
- * repoUrl: "https://github.com/argoproj/argo-cd.git",
183
- * revision: "HEAD",
184
- * directories: [{
185
- * path: "applicationset/examples/git-generator-directory/cluster-addons/*",
186
- * exclude: false,
187
- * }],
188
- * }],
189
- * }],
190
176
  * template: {
191
177
  * metadata: {
192
178
  * name: "{{.path.basename}}-addon",
193
179
  * },
194
180
  * spec: {
195
- * project: "default",
196
181
  * source: {
197
182
  * repoUrl: "https://github.com/argoproj/argo-cd.git",
198
183
  * path: "{{.path.path}}",
@@ -208,10 +193,25 @@ const utilities = __importStar(require("../utilities"));
208
193
  * selfHeal: true,
209
194
  * },
210
195
  * },
196
+ * project: "default",
211
197
  * },
212
198
  * },
199
+ * generators: [{
200
+ * gits: [{
201
+ * directories: [{
202
+ * path: "applicationset/examples/git-generator-directory/cluster-addons/*",
203
+ * exclude: false,
204
+ * }],
205
+ * repoUrl: "https://github.com/argoproj/argo-cd.git",
206
+ * revision: "HEAD",
207
+ * }],
208
+ * }],
213
209
  * },
214
210
  * },
211
+ * orgId: "default",
212
+ * projectId: "projectId",
213
+ * agentId: "account.agentuseast1",
214
+ * upsert: true,
215
215
  * });
216
216
  * ```
217
217
  *
@@ -12,51 +12,46 @@ import * as outputs from "../types/output";
12
12
  *
13
13
  * // Account-scoped DELETE rule — keep last 10 versions, runs nightly
14
14
  * const nightlyCleanup = new harness.platform.HarLifecycleRule("nightly_cleanup", {
15
- * accountId: "your-account-id",
16
- * name: "nightly-cleanup",
17
- * action: "DELETE",
18
- * description: "Keep last 10 versions of all artifacts",
19
15
  * applyTo: {
20
16
  * mode: "ALL_IN_SCOPE",
21
17
  * },
22
18
  * criteria: {
23
- * match: "ALL",
24
19
  * rules: [{
25
20
  * type: "KEEP_LAST_N",
26
21
  * value: 10,
27
22
  * }],
23
+ * match: "ALL",
28
24
  * },
29
25
  * schedule: {
30
26
  * expression: "0 2 * * *",
31
27
  * timezone: "UTC",
32
28
  * },
29
+ * accountId: "your-account-id",
30
+ * name: "nightly-cleanup",
31
+ * action: "DELETE",
32
+ * description: "Keep last 10 versions of all artifacts",
33
33
  * });
34
34
  * // Project-scoped DELETE rule — delete artifacts older than 30 days
35
35
  * const ageBasedCleanup = new harness.platform.HarLifecycleRule("age_based_cleanup", {
36
- * accountId: "your-account-id",
37
- * orgId: "your-org-id",
38
- * projectId: "your-project-id",
39
- * name: "age-based-cleanup",
40
- * action: "DELETE",
41
36
  * applyTo: {
42
37
  * mode: "ALL_IN_SCOPE",
43
38
  * },
44
39
  * criteria: {
45
- * match: "ALL",
46
40
  * rules: [{
47
41
  * type: "AGE_BASED",
48
42
  * value: 30,
49
43
  * unit: "DAYS",
50
44
  * }],
45
+ * match: "ALL",
51
46
  * },
47
+ * accountId: "your-account-id",
48
+ * orgId: "your-org-id",
49
+ * projectId: "your-project-id",
50
+ * name: "age-based-cleanup",
51
+ * action: "DELETE",
52
52
  * });
53
53
  * // Org-scoped PROTECT rule — protect images in specific registries matching a tag pattern
54
54
  * const protectProd = new harness.platform.HarLifecycleRule("protect_prod", {
55
- * accountId: "your-account-id",
56
- * orgId: "your-org-id",
57
- * name: "protect-prod-images",
58
- * action: "PROTECT",
59
- * packageType: "DOCKER",
60
55
  * applyTo: {
61
56
  * mode: "EXPLICIT",
62
57
  * registries: [
@@ -71,17 +66,18 @@ import * as outputs from "../types/output";
71
66
  * "release-*",
72
67
  * ],
73
68
  * },
69
+ * accountId: "your-account-id",
70
+ * orgId: "your-org-id",
71
+ * name: "protect-prod-images",
72
+ * action: "PROTECT",
73
+ * packageType: "DOCKER",
74
74
  * });
75
75
  * // Account-scoped DELETE rule with multiple criteria (ANY match)
76
76
  * const multiCriteriaCleanup = new harness.platform.HarLifecycleRule("multi_criteria_cleanup", {
77
- * accountId: "your-account-id",
78
- * name: "multi-criteria-cleanup",
79
- * action: "DELETE",
80
77
  * applyTo: {
81
78
  * mode: "ALL_IN_SCOPE",
82
79
  * },
83
80
  * criteria: {
84
- * match: "ANY",
85
81
  * rules: [
86
82
  * {
87
83
  * type: "KEEP_LAST_N",
@@ -93,7 +89,11 @@ import * as outputs from "../types/output";
93
89
  * unit: "DAYS",
94
90
  * },
95
91
  * ],
92
+ * match: "ANY",
96
93
  * },
94
+ * accountId: "your-account-id",
95
+ * name: "multi-criteria-cleanup",
96
+ * action: "DELETE",
97
97
  * });
98
98
  * ```
99
99
  *
@@ -39,51 +39,46 @@ const utilities = __importStar(require("../utilities"));
39
39
  *
40
40
  * // Account-scoped DELETE rule — keep last 10 versions, runs nightly
41
41
  * const nightlyCleanup = new harness.platform.HarLifecycleRule("nightly_cleanup", {
42
- * accountId: "your-account-id",
43
- * name: "nightly-cleanup",
44
- * action: "DELETE",
45
- * description: "Keep last 10 versions of all artifacts",
46
42
  * applyTo: {
47
43
  * mode: "ALL_IN_SCOPE",
48
44
  * },
49
45
  * criteria: {
50
- * match: "ALL",
51
46
  * rules: [{
52
47
  * type: "KEEP_LAST_N",
53
48
  * value: 10,
54
49
  * }],
50
+ * match: "ALL",
55
51
  * },
56
52
  * schedule: {
57
53
  * expression: "0 2 * * *",
58
54
  * timezone: "UTC",
59
55
  * },
56
+ * accountId: "your-account-id",
57
+ * name: "nightly-cleanup",
58
+ * action: "DELETE",
59
+ * description: "Keep last 10 versions of all artifacts",
60
60
  * });
61
61
  * // Project-scoped DELETE rule — delete artifacts older than 30 days
62
62
  * const ageBasedCleanup = new harness.platform.HarLifecycleRule("age_based_cleanup", {
63
- * accountId: "your-account-id",
64
- * orgId: "your-org-id",
65
- * projectId: "your-project-id",
66
- * name: "age-based-cleanup",
67
- * action: "DELETE",
68
63
  * applyTo: {
69
64
  * mode: "ALL_IN_SCOPE",
70
65
  * },
71
66
  * criteria: {
72
- * match: "ALL",
73
67
  * rules: [{
74
68
  * type: "AGE_BASED",
75
69
  * value: 30,
76
70
  * unit: "DAYS",
77
71
  * }],
72
+ * match: "ALL",
78
73
  * },
74
+ * accountId: "your-account-id",
75
+ * orgId: "your-org-id",
76
+ * projectId: "your-project-id",
77
+ * name: "age-based-cleanup",
78
+ * action: "DELETE",
79
79
  * });
80
80
  * // Org-scoped PROTECT rule — protect images in specific registries matching a tag pattern
81
81
  * const protectProd = new harness.platform.HarLifecycleRule("protect_prod", {
82
- * accountId: "your-account-id",
83
- * orgId: "your-org-id",
84
- * name: "protect-prod-images",
85
- * action: "PROTECT",
86
- * packageType: "DOCKER",
87
82
  * applyTo: {
88
83
  * mode: "EXPLICIT",
89
84
  * registries: [
@@ -98,17 +93,18 @@ const utilities = __importStar(require("../utilities"));
98
93
  * "release-*",
99
94
  * ],
100
95
  * },
96
+ * accountId: "your-account-id",
97
+ * orgId: "your-org-id",
98
+ * name: "protect-prod-images",
99
+ * action: "PROTECT",
100
+ * packageType: "DOCKER",
101
101
  * });
102
102
  * // Account-scoped DELETE rule with multiple criteria (ANY match)
103
103
  * const multiCriteriaCleanup = new harness.platform.HarLifecycleRule("multi_criteria_cleanup", {
104
- * accountId: "your-account-id",
105
- * name: "multi-criteria-cleanup",
106
- * action: "DELETE",
107
104
  * applyTo: {
108
105
  * mode: "ALL_IN_SCOPE",
109
106
  * },
110
107
  * criteria: {
111
- * match: "ANY",
112
108
  * rules: [
113
109
  * {
114
110
  * type: "KEEP_LAST_N",
@@ -120,7 +116,11 @@ const utilities = __importStar(require("../utilities"));
120
116
  * unit: "DAYS",
121
117
  * },
122
118
  * ],
119
+ * match: "ANY",
123
120
  * },
121
+ * accountId: "your-account-id",
122
+ * name: "multi-criteria-cleanup",
123
+ * action: "DELETE",
124
124
  * });
125
125
  * ```
126
126
  *