@pulumi/harness 0.12.0-alpha.1776752434 → 0.12.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.
- package/chaos/actionTemplate.d.ts +492 -0
- package/chaos/actionTemplate.js +304 -0
- package/chaos/actionTemplate.js.map +1 -0
- package/chaos/experiment.d.ts +478 -0
- package/chaos/experiment.js +264 -0
- package/chaos/experiment.js.map +1 -0
- package/chaos/experimentTemplate.d.ts +510 -0
- package/chaos/experimentTemplate.js +424 -0
- package/chaos/experimentTemplate.js.map +1 -0
- package/chaos/faultTemplate.d.ts +613 -0
- package/chaos/faultTemplate.js +390 -0
- package/chaos/faultTemplate.js.map +1 -0
- package/chaos/getActionTemplate.d.ts +272 -0
- package/chaos/getActionTemplate.js +84 -0
- package/chaos/getActionTemplate.js.map +1 -0
- package/chaos/getExperiment.d.ts +289 -0
- package/chaos/getExperiment.js +150 -0
- package/chaos/getExperiment.js.map +1 -0
- package/chaos/getExperimentTemplate.d.ts +197 -0
- package/chaos/getExperimentTemplate.js +116 -0
- package/chaos/getExperimentTemplate.js.map +1 -0
- package/chaos/getFaultTemplate.d.ts +173 -0
- package/chaos/getFaultTemplate.js +38 -0
- package/chaos/getFaultTemplate.js.map +1 -0
- package/chaos/getHubV2.d.ts +160 -0
- package/chaos/getHubV2.js +40 -0
- package/chaos/getHubV2.js.map +1 -0
- package/chaos/getProbeTemplate.d.ts +199 -0
- package/chaos/getProbeTemplate.js +94 -0
- package/chaos/getProbeTemplate.js.map +1 -0
- package/chaos/hubV2.d.ts +358 -0
- package/chaos/hubV2.js +192 -0
- package/chaos/hubV2.js.map +1 -0
- package/chaos/index.d.ts +36 -0
- package/chaos/index.js +49 -1
- package/chaos/index.js.map +1 -1
- package/chaos/probeTemplate.d.ts +278 -0
- package/chaos/probeTemplate.js +122 -0
- package/chaos/probeTemplate.js.map +1 -0
- package/package.json +2 -2
- package/platform/bitbucketConnector.d.ts +90 -0
- package/platform/bitbucketConnector.js +90 -0
- package/platform/bitbucketConnector.js.map +1 -1
- package/platform/getWorkspaces.d.ts +97 -0
- package/platform/getWorkspaces.js +56 -0
- package/platform/getWorkspaces.js.map +1 -0
- package/platform/index.d.ts +3 -0
- package/platform/index.js +6 -2
- package/platform/index.js.map +1 -1
- package/platform/template.d.ts +3 -3
- package/service/discoveryAgent.d.ts +0 -1
- package/service/discoveryAgent.js +0 -1
- package/service/discoveryAgent.js.map +1 -1
- package/types/input.d.ts +2247 -111
- package/types/output.d.ts +2236 -5
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Resource for managing Harness Chaos Action Templates. Action templates define reusable actions that can be used in chaos experiments.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* // ============================================================================
|
|
14
|
+
* // Harness Chaos Action Template Resource Examples
|
|
15
|
+
* // ============================================================================
|
|
16
|
+
* //
|
|
17
|
+
* // Action templates define reusable actions for chaos experiments.
|
|
18
|
+
* // These examples are based on TESTED configurations from the e2e-test suite.
|
|
19
|
+
* //
|
|
20
|
+
* // Key Points:
|
|
21
|
+
* // - Actions can be delay, script, or container type
|
|
22
|
+
* // - Runtime inputs with defaults: "<+input>.default('value')"
|
|
23
|
+
* // - Container actions support full Kubernetes pod configuration
|
|
24
|
+
* // ============================================================================
|
|
25
|
+
* // ----------------------------------------------------------------------------
|
|
26
|
+
* // Example 1: Container Action with Runtime Inputs (TESTED ✅)
|
|
27
|
+
* // ----------------------------------------------------------------------------
|
|
28
|
+
* // Most common pattern: container action with runtime inputs and defaults
|
|
29
|
+
* const containerWithRuntimeInputs = new harness.chaos.ActionTemplate("container_with_runtime_inputs", {
|
|
30
|
+
* orgId: _this.id,
|
|
31
|
+
* projectId: thisHarnessPlatformProject.id,
|
|
32
|
+
* hubIdentity: projectLevel.identity,
|
|
33
|
+
* identity: "container-action-template",
|
|
34
|
+
* name: "Container Action Template",
|
|
35
|
+
* description: "Container action with runtime inputs and defaults",
|
|
36
|
+
* type: "container",
|
|
37
|
+
* infrastructureType: "<+input>.default('Kubernetes')",
|
|
38
|
+
* tags: [
|
|
39
|
+
* "container",
|
|
40
|
+
* "kubernetes",
|
|
41
|
+
* "runtime-inputs",
|
|
42
|
+
* ],
|
|
43
|
+
* containerAction: {
|
|
44
|
+
* image: "<+input>.default('busybox:latest')",
|
|
45
|
+
* commands: ["<+input>.default('sh')"],
|
|
46
|
+
* args: "echo 'Running container action'; sleep 15",
|
|
47
|
+
* namespace: "<+input>.default('default')",
|
|
48
|
+
* nodeSelector: {
|
|
49
|
+
* disktype: "ssd",
|
|
50
|
+
* zone: "us-west-1a",
|
|
51
|
+
* },
|
|
52
|
+
* labels: {
|
|
53
|
+
* app: "chaos-action",
|
|
54
|
+
* environment: "production",
|
|
55
|
+
* "managed-by": "terraform",
|
|
56
|
+
* },
|
|
57
|
+
* annotations: {
|
|
58
|
+
* description: "Chaos container action",
|
|
59
|
+
* owner: "chaos-team",
|
|
60
|
+
* },
|
|
61
|
+
* envs: [
|
|
62
|
+
* {
|
|
63
|
+
* name: "TEST_VAR",
|
|
64
|
+
* value: "<+input>.default('test_value')",
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* name: "ANOTHER_VAR",
|
|
68
|
+
* value: "<+input>.default('another_value')",
|
|
69
|
+
* },
|
|
70
|
+
* ],
|
|
71
|
+
* resources: {
|
|
72
|
+
* limits: {
|
|
73
|
+
* cpu: "500m",
|
|
74
|
+
* memory: "512Mi",
|
|
75
|
+
* },
|
|
76
|
+
* requests: {
|
|
77
|
+
* cpu: "250m",
|
|
78
|
+
* memory: "256Mi",
|
|
79
|
+
* },
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* runProperties: {
|
|
83
|
+
* timeout: "<+input>.default('60s')",
|
|
84
|
+
* interval: "<+input>.default('15s')",
|
|
85
|
+
* },
|
|
86
|
+
* variables: [
|
|
87
|
+
* {
|
|
88
|
+
* name: "container_image",
|
|
89
|
+
* value: "<+input>",
|
|
90
|
+
* type: "string",
|
|
91
|
+
* required: true,
|
|
92
|
+
* description: "Container image to use (runtime input)",
|
|
93
|
+
* },
|
|
94
|
+
* {
|
|
95
|
+
* name: "namespace",
|
|
96
|
+
* value: "<+input>",
|
|
97
|
+
* type: "string",
|
|
98
|
+
* required: false,
|
|
99
|
+
* description: "Kubernetes namespace (runtime input)",
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* }, {
|
|
103
|
+
* dependsOn: [projectLevel],
|
|
104
|
+
* });
|
|
105
|
+
* // ----------------------------------------------------------------------------
|
|
106
|
+
* // Example 2: Simple Delay Action (TESTED ✅)
|
|
107
|
+
* // ----------------------------------------------------------------------------
|
|
108
|
+
* // Delay action for adding wait time in experiments
|
|
109
|
+
* const delayAction = new harness.chaos.ActionTemplate("delay_action", {
|
|
110
|
+
* orgId: _this.id,
|
|
111
|
+
* projectId: thisHarnessPlatformProject.id,
|
|
112
|
+
* hubIdentity: projectLevel.identity,
|
|
113
|
+
* identity: "delay-action-template",
|
|
114
|
+
* name: "Delay Action Template",
|
|
115
|
+
* description: "Simple delay action for wait time",
|
|
116
|
+
* type: "delay",
|
|
117
|
+
* infrastructureType: "Kubernetes",
|
|
118
|
+
* tags: [
|
|
119
|
+
* "delay",
|
|
120
|
+
* "wait",
|
|
121
|
+
* ],
|
|
122
|
+
* delayAction: {
|
|
123
|
+
* duration: "<+input>.default('30s')",
|
|
124
|
+
* },
|
|
125
|
+
* runProperties: {
|
|
126
|
+
* timeout: "60s",
|
|
127
|
+
* },
|
|
128
|
+
* }, {
|
|
129
|
+
* dependsOn: [projectLevel],
|
|
130
|
+
* });
|
|
131
|
+
* // ----------------------------------------------------------------------------
|
|
132
|
+
* // Example 3: Script Action (TESTED ✅)
|
|
133
|
+
* // ----------------------------------------------------------------------------
|
|
134
|
+
* // Custom script action for flexible operations
|
|
135
|
+
* const scriptAction = new harness.chaos.ActionTemplate("script_action", {
|
|
136
|
+
* orgId: _this.id,
|
|
137
|
+
* projectId: thisHarnessPlatformProject.id,
|
|
138
|
+
* hubIdentity: projectLevel.identity,
|
|
139
|
+
* identity: "script-action-template",
|
|
140
|
+
* name: "Script Action Template",
|
|
141
|
+
* description: "Custom script action for chaos operations",
|
|
142
|
+
* type: "script",
|
|
143
|
+
* infrastructureType: "<+input>.default('Kubernetes')",
|
|
144
|
+
* tags: [
|
|
145
|
+
* "script",
|
|
146
|
+
* "custom",
|
|
147
|
+
* ],
|
|
148
|
+
* customScriptAction: {
|
|
149
|
+
* script: `#!/bin/bash
|
|
150
|
+
* echo \\"Running custom chaos script\\"
|
|
151
|
+
* echo \\"Target: <+input>\\"
|
|
152
|
+
* sleep 10
|
|
153
|
+
* echo \\"Script completed\\"
|
|
154
|
+
* `,
|
|
155
|
+
* shell: "bash",
|
|
156
|
+
* envs: [{
|
|
157
|
+
* name: "TARGET",
|
|
158
|
+
* value: "<+input>.default('default-target')",
|
|
159
|
+
* }],
|
|
160
|
+
* },
|
|
161
|
+
* runProperties: {
|
|
162
|
+
* timeout: "<+input>.default('120s')",
|
|
163
|
+
* interval: "30s",
|
|
164
|
+
* },
|
|
165
|
+
* variables: [{
|
|
166
|
+
* name: "target_resource",
|
|
167
|
+
* value: "<+input>",
|
|
168
|
+
* type: "string",
|
|
169
|
+
* required: true,
|
|
170
|
+
* description: "Target resource for the script",
|
|
171
|
+
* }],
|
|
172
|
+
* }, {
|
|
173
|
+
* dependsOn: [projectLevel],
|
|
174
|
+
* });
|
|
175
|
+
* ```
|
|
176
|
+
*
|
|
177
|
+
* ## Import
|
|
178
|
+
*
|
|
179
|
+
* The `pulumi import` command can be used, for example:
|
|
180
|
+
*
|
|
181
|
+
* Example 1: Import Project-level Action Template
|
|
182
|
+
* Format: org_id/project_id/hub_identity/template_identity
|
|
183
|
+
*
|
|
184
|
+
* ```sh
|
|
185
|
+
* $ pulumi import harness:chaos/actionTemplate:ActionTemplate example my_org/my_project/my-chaos-hub/delay-action-template
|
|
186
|
+
* ```
|
|
187
|
+
*
|
|
188
|
+
* Example 2: Import Org-level Action Template
|
|
189
|
+
* Format: org_id/hub_identity/template_identity
|
|
190
|
+
*
|
|
191
|
+
* ```sh
|
|
192
|
+
* $ pulumi import harness:chaos/actionTemplate:ActionTemplate org_example my_org/org-chaos-hub/org-script-action
|
|
193
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* Example 3: Import Account-level Action Template
|
|
196
|
+
* Format: hub_identity/template_identity
|
|
197
|
+
*
|
|
198
|
+
* ```sh
|
|
199
|
+
* $ pulumi import harness:chaos/actionTemplate:ActionTemplate account_example account-chaos-hub/account-delay-action
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
export declare class ActionTemplate extends pulumi.CustomResource {
|
|
203
|
+
/**
|
|
204
|
+
* Get an existing ActionTemplate resource's state with the given name, ID, and optional extra
|
|
205
|
+
* properties used to qualify the lookup.
|
|
206
|
+
*
|
|
207
|
+
* @param name The _unique_ name of the resulting resource.
|
|
208
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
209
|
+
* @param state Any extra arguments used during the lookup.
|
|
210
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
211
|
+
*/
|
|
212
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionTemplateState, opts?: pulumi.CustomResourceOptions): ActionTemplate;
|
|
213
|
+
/**
|
|
214
|
+
* Returns true if the given object is an instance of ActionTemplate. This is designed to work even
|
|
215
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
216
|
+
*/
|
|
217
|
+
static isInstance(obj: any): obj is ActionTemplate;
|
|
218
|
+
/**
|
|
219
|
+
* Account identifier.
|
|
220
|
+
*/
|
|
221
|
+
readonly accountId: pulumi.Output<string>;
|
|
222
|
+
/**
|
|
223
|
+
* Container action configuration. Required when type is 'container'.
|
|
224
|
+
*/
|
|
225
|
+
readonly containerAction: pulumi.Output<outputs.chaos.ActionTemplateContainerAction | undefined>;
|
|
226
|
+
/**
|
|
227
|
+
* Creation timestamp (Unix epoch).
|
|
228
|
+
*/
|
|
229
|
+
readonly createdAt: pulumi.Output<number>;
|
|
230
|
+
/**
|
|
231
|
+
* User who created the action template.
|
|
232
|
+
*/
|
|
233
|
+
readonly createdBy: pulumi.Output<string>;
|
|
234
|
+
/**
|
|
235
|
+
* Custom script action configuration. Required when type is 'customScript'.
|
|
236
|
+
*/
|
|
237
|
+
readonly customScriptAction: pulumi.Output<outputs.chaos.ActionTemplateCustomScriptAction | undefined>;
|
|
238
|
+
/**
|
|
239
|
+
* Delay action configuration. Required when type is 'delay'.
|
|
240
|
+
*/
|
|
241
|
+
readonly delayAction: pulumi.Output<outputs.chaos.ActionTemplateDelayAction | undefined>;
|
|
242
|
+
/**
|
|
243
|
+
* Description of the action template.
|
|
244
|
+
*/
|
|
245
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
246
|
+
/**
|
|
247
|
+
* Identity of the chaos hub this action template belongs to.
|
|
248
|
+
*/
|
|
249
|
+
readonly hubIdentity: pulumi.Output<string>;
|
|
250
|
+
/**
|
|
251
|
+
* Internal ID of the action template.
|
|
252
|
+
*/
|
|
253
|
+
readonly idInternal: pulumi.Output<string>;
|
|
254
|
+
/**
|
|
255
|
+
* Unique identifier for the action template (immutable).
|
|
256
|
+
*/
|
|
257
|
+
readonly identity: pulumi.Output<string>;
|
|
258
|
+
/**
|
|
259
|
+
* Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
|
|
260
|
+
*/
|
|
261
|
+
readonly infrastructureType: pulumi.Output<string | undefined>;
|
|
262
|
+
/**
|
|
263
|
+
* Whether this is the default version for predefined actions.
|
|
264
|
+
*/
|
|
265
|
+
readonly isDefault: pulumi.Output<boolean>;
|
|
266
|
+
/**
|
|
267
|
+
* Whether this is an enterprise action template.
|
|
268
|
+
*/
|
|
269
|
+
readonly isEnterprise: pulumi.Output<boolean>;
|
|
270
|
+
/**
|
|
271
|
+
* Whether the action template has been removed.
|
|
272
|
+
*/
|
|
273
|
+
readonly isRemoved: pulumi.Output<boolean>;
|
|
274
|
+
/**
|
|
275
|
+
* Name of the action template.
|
|
276
|
+
*/
|
|
277
|
+
readonly name: pulumi.Output<string>;
|
|
278
|
+
/**
|
|
279
|
+
* Organization identifier.
|
|
280
|
+
*/
|
|
281
|
+
readonly orgId: pulumi.Output<string | undefined>;
|
|
282
|
+
/**
|
|
283
|
+
* Project identifier.
|
|
284
|
+
*/
|
|
285
|
+
readonly projectId: pulumi.Output<string | undefined>;
|
|
286
|
+
/**
|
|
287
|
+
* Revision number of the action template.
|
|
288
|
+
*/
|
|
289
|
+
readonly revision: pulumi.Output<number>;
|
|
290
|
+
/**
|
|
291
|
+
* Run properties for the action template execution.
|
|
292
|
+
*/
|
|
293
|
+
readonly runProperties: pulumi.Output<outputs.chaos.ActionTemplateRunProperties | undefined>;
|
|
294
|
+
/**
|
|
295
|
+
* Tags to associate with the action template.
|
|
296
|
+
*/
|
|
297
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
298
|
+
/**
|
|
299
|
+
* Template content/definition.
|
|
300
|
+
*/
|
|
301
|
+
readonly template: pulumi.Output<string>;
|
|
302
|
+
/**
|
|
303
|
+
* Type of the action template. Valid values: delay, customScript, container.
|
|
304
|
+
*/
|
|
305
|
+
readonly type: pulumi.Output<string>;
|
|
306
|
+
/**
|
|
307
|
+
* Last update timestamp (Unix epoch).
|
|
308
|
+
*/
|
|
309
|
+
readonly updatedAt: pulumi.Output<number>;
|
|
310
|
+
/**
|
|
311
|
+
* User who last updated the action template.
|
|
312
|
+
*/
|
|
313
|
+
readonly updatedBy: pulumi.Output<string>;
|
|
314
|
+
/**
|
|
315
|
+
* Template variables that can be used in the action.
|
|
316
|
+
*/
|
|
317
|
+
readonly variables: pulumi.Output<outputs.chaos.ActionTemplateVariable[] | undefined>;
|
|
318
|
+
/**
|
|
319
|
+
* Create a ActionTemplate resource with the given unique name, arguments, and options.
|
|
320
|
+
*
|
|
321
|
+
* @param name The _unique_ name of the resource.
|
|
322
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
323
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
324
|
+
*/
|
|
325
|
+
constructor(name: string, args: ActionTemplateArgs, opts?: pulumi.CustomResourceOptions);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Input properties used for looking up and filtering ActionTemplate resources.
|
|
329
|
+
*/
|
|
330
|
+
export interface ActionTemplateState {
|
|
331
|
+
/**
|
|
332
|
+
* Account identifier.
|
|
333
|
+
*/
|
|
334
|
+
accountId?: pulumi.Input<string>;
|
|
335
|
+
/**
|
|
336
|
+
* Container action configuration. Required when type is 'container'.
|
|
337
|
+
*/
|
|
338
|
+
containerAction?: pulumi.Input<inputs.chaos.ActionTemplateContainerAction>;
|
|
339
|
+
/**
|
|
340
|
+
* Creation timestamp (Unix epoch).
|
|
341
|
+
*/
|
|
342
|
+
createdAt?: pulumi.Input<number>;
|
|
343
|
+
/**
|
|
344
|
+
* User who created the action template.
|
|
345
|
+
*/
|
|
346
|
+
createdBy?: pulumi.Input<string>;
|
|
347
|
+
/**
|
|
348
|
+
* Custom script action configuration. Required when type is 'customScript'.
|
|
349
|
+
*/
|
|
350
|
+
customScriptAction?: pulumi.Input<inputs.chaos.ActionTemplateCustomScriptAction>;
|
|
351
|
+
/**
|
|
352
|
+
* Delay action configuration. Required when type is 'delay'.
|
|
353
|
+
*/
|
|
354
|
+
delayAction?: pulumi.Input<inputs.chaos.ActionTemplateDelayAction>;
|
|
355
|
+
/**
|
|
356
|
+
* Description of the action template.
|
|
357
|
+
*/
|
|
358
|
+
description?: pulumi.Input<string>;
|
|
359
|
+
/**
|
|
360
|
+
* Identity of the chaos hub this action template belongs to.
|
|
361
|
+
*/
|
|
362
|
+
hubIdentity?: pulumi.Input<string>;
|
|
363
|
+
/**
|
|
364
|
+
* Internal ID of the action template.
|
|
365
|
+
*/
|
|
366
|
+
idInternal?: pulumi.Input<string>;
|
|
367
|
+
/**
|
|
368
|
+
* Unique identifier for the action template (immutable).
|
|
369
|
+
*/
|
|
370
|
+
identity?: pulumi.Input<string>;
|
|
371
|
+
/**
|
|
372
|
+
* Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
|
|
373
|
+
*/
|
|
374
|
+
infrastructureType?: pulumi.Input<string>;
|
|
375
|
+
/**
|
|
376
|
+
* Whether this is the default version for predefined actions.
|
|
377
|
+
*/
|
|
378
|
+
isDefault?: pulumi.Input<boolean>;
|
|
379
|
+
/**
|
|
380
|
+
* Whether this is an enterprise action template.
|
|
381
|
+
*/
|
|
382
|
+
isEnterprise?: pulumi.Input<boolean>;
|
|
383
|
+
/**
|
|
384
|
+
* Whether the action template has been removed.
|
|
385
|
+
*/
|
|
386
|
+
isRemoved?: pulumi.Input<boolean>;
|
|
387
|
+
/**
|
|
388
|
+
* Name of the action template.
|
|
389
|
+
*/
|
|
390
|
+
name?: pulumi.Input<string>;
|
|
391
|
+
/**
|
|
392
|
+
* Organization identifier.
|
|
393
|
+
*/
|
|
394
|
+
orgId?: pulumi.Input<string>;
|
|
395
|
+
/**
|
|
396
|
+
* Project identifier.
|
|
397
|
+
*/
|
|
398
|
+
projectId?: pulumi.Input<string>;
|
|
399
|
+
/**
|
|
400
|
+
* Revision number of the action template.
|
|
401
|
+
*/
|
|
402
|
+
revision?: pulumi.Input<number>;
|
|
403
|
+
/**
|
|
404
|
+
* Run properties for the action template execution.
|
|
405
|
+
*/
|
|
406
|
+
runProperties?: pulumi.Input<inputs.chaos.ActionTemplateRunProperties>;
|
|
407
|
+
/**
|
|
408
|
+
* Tags to associate with the action template.
|
|
409
|
+
*/
|
|
410
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
411
|
+
/**
|
|
412
|
+
* Template content/definition.
|
|
413
|
+
*/
|
|
414
|
+
template?: pulumi.Input<string>;
|
|
415
|
+
/**
|
|
416
|
+
* Type of the action template. Valid values: delay, customScript, container.
|
|
417
|
+
*/
|
|
418
|
+
type?: pulumi.Input<string>;
|
|
419
|
+
/**
|
|
420
|
+
* Last update timestamp (Unix epoch).
|
|
421
|
+
*/
|
|
422
|
+
updatedAt?: pulumi.Input<number>;
|
|
423
|
+
/**
|
|
424
|
+
* User who last updated the action template.
|
|
425
|
+
*/
|
|
426
|
+
updatedBy?: pulumi.Input<string>;
|
|
427
|
+
/**
|
|
428
|
+
* Template variables that can be used in the action.
|
|
429
|
+
*/
|
|
430
|
+
variables?: pulumi.Input<pulumi.Input<inputs.chaos.ActionTemplateVariable>[]>;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* The set of arguments for constructing a ActionTemplate resource.
|
|
434
|
+
*/
|
|
435
|
+
export interface ActionTemplateArgs {
|
|
436
|
+
/**
|
|
437
|
+
* Container action configuration. Required when type is 'container'.
|
|
438
|
+
*/
|
|
439
|
+
containerAction?: pulumi.Input<inputs.chaos.ActionTemplateContainerAction>;
|
|
440
|
+
/**
|
|
441
|
+
* Custom script action configuration. Required when type is 'customScript'.
|
|
442
|
+
*/
|
|
443
|
+
customScriptAction?: pulumi.Input<inputs.chaos.ActionTemplateCustomScriptAction>;
|
|
444
|
+
/**
|
|
445
|
+
* Delay action configuration. Required when type is 'delay'.
|
|
446
|
+
*/
|
|
447
|
+
delayAction?: pulumi.Input<inputs.chaos.ActionTemplateDelayAction>;
|
|
448
|
+
/**
|
|
449
|
+
* Description of the action template.
|
|
450
|
+
*/
|
|
451
|
+
description?: pulumi.Input<string>;
|
|
452
|
+
/**
|
|
453
|
+
* Identity of the chaos hub this action template belongs to.
|
|
454
|
+
*/
|
|
455
|
+
hubIdentity: pulumi.Input<string>;
|
|
456
|
+
/**
|
|
457
|
+
* Unique identifier for the action template (immutable).
|
|
458
|
+
*/
|
|
459
|
+
identity: pulumi.Input<string>;
|
|
460
|
+
/**
|
|
461
|
+
* Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
|
|
462
|
+
*/
|
|
463
|
+
infrastructureType?: pulumi.Input<string>;
|
|
464
|
+
/**
|
|
465
|
+
* Name of the action template.
|
|
466
|
+
*/
|
|
467
|
+
name?: pulumi.Input<string>;
|
|
468
|
+
/**
|
|
469
|
+
* Organization identifier.
|
|
470
|
+
*/
|
|
471
|
+
orgId?: pulumi.Input<string>;
|
|
472
|
+
/**
|
|
473
|
+
* Project identifier.
|
|
474
|
+
*/
|
|
475
|
+
projectId?: pulumi.Input<string>;
|
|
476
|
+
/**
|
|
477
|
+
* Run properties for the action template execution.
|
|
478
|
+
*/
|
|
479
|
+
runProperties?: pulumi.Input<inputs.chaos.ActionTemplateRunProperties>;
|
|
480
|
+
/**
|
|
481
|
+
* Tags to associate with the action template.
|
|
482
|
+
*/
|
|
483
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
484
|
+
/**
|
|
485
|
+
* Type of the action template. Valid values: delay, customScript, container.
|
|
486
|
+
*/
|
|
487
|
+
type: pulumi.Input<string>;
|
|
488
|
+
/**
|
|
489
|
+
* Template variables that can be used in the action.
|
|
490
|
+
*/
|
|
491
|
+
variables?: pulumi.Input<pulumi.Input<inputs.chaos.ActionTemplateVariable>[]>;
|
|
492
|
+
}
|