@pulumi/harness 0.14.1 → 0.14.2
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/getSecurityGovernanceConditionV3.d.ts +146 -0
- package/chaos/getSecurityGovernanceConditionV3.d.ts.map +1 -0
- package/chaos/getSecurityGovernanceConditionV3.js +101 -0
- package/chaos/getSecurityGovernanceConditionV3.js.map +1 -0
- package/chaos/getSecurityGovernanceRuleV3.d.ts +146 -0
- package/chaos/getSecurityGovernanceRuleV3.d.ts.map +1 -0
- package/chaos/getSecurityGovernanceRuleV3.js +101 -0
- package/chaos/getSecurityGovernanceRuleV3.js.map +1 -0
- package/chaos/index.d.ts +12 -0
- package/chaos/index.d.ts.map +1 -1
- package/chaos/index.js +17 -1
- package/chaos/index.js.map +1 -1
- package/chaos/securityGovernanceConditionV3.d.ts +251 -0
- package/chaos/securityGovernanceConditionV3.d.ts.map +1 -0
- package/chaos/securityGovernanceConditionV3.js +204 -0
- package/chaos/securityGovernanceConditionV3.js.map +1 -0
- package/chaos/securityGovernanceRuleV3.d.ts +192 -0
- package/chaos/securityGovernanceRuleV3.d.ts.map +1 -0
- package/chaos/securityGovernanceRuleV3.js +145 -0
- package/chaos/securityGovernanceRuleV3.js.map +1 -0
- package/package.json +2 -2
- package/types/input.d.ts +345 -1
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +494 -2
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,192 @@
|
|
|
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 a Harness Chaos Security Governance Rule (V3 / REST API).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* // Example of a Security Governance Rule (V3)
|
|
14
|
+
* const example = new harness.chaos.SecurityGovernanceRuleV3("example", {
|
|
15
|
+
* orgId: orgId,
|
|
16
|
+
* projectId: projectId,
|
|
17
|
+
* name: "k8s-security-rule",
|
|
18
|
+
* description: "Security governance rule for Kubernetes chaos experiments",
|
|
19
|
+
* isEnabled: true,
|
|
20
|
+
* conditionIds: [k8sCondition.id],
|
|
21
|
+
* userGroupIds: ["_project_all_users"],
|
|
22
|
+
* tags: [
|
|
23
|
+
* "env:prod",
|
|
24
|
+
* "team:security",
|
|
25
|
+
* ],
|
|
26
|
+
* timeWindows: [{
|
|
27
|
+
* timeZone: "UTC",
|
|
28
|
+
* startTime: 1711238400000,
|
|
29
|
+
* duration: "24h",
|
|
30
|
+
* recurrence: {
|
|
31
|
+
* type: "Daily",
|
|
32
|
+
* until: -1,
|
|
33
|
+
* },
|
|
34
|
+
* }],
|
|
35
|
+
* });
|
|
36
|
+
* export const securityGovernanceRuleV3Id = example.id;
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* The `pulumi import` command can be used, for example:
|
|
42
|
+
*
|
|
43
|
+
* Import Project level Chaos Security Governance Rule (V3)
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import harness:chaos/securityGovernanceRuleV3:SecurityGovernanceRuleV3 example org_id/project_id/rule_id
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare class SecurityGovernanceRuleV3 extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing SecurityGovernanceRuleV3 resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecurityGovernanceRuleV3State, opts?: pulumi.CustomResourceOptions): SecurityGovernanceRuleV3;
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of SecurityGovernanceRuleV3. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj: any): obj is SecurityGovernanceRuleV3;
|
|
65
|
+
/**
|
|
66
|
+
* List of condition IDs associated with this rule
|
|
67
|
+
*/
|
|
68
|
+
readonly conditionIds: pulumi.Output<string[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Description of the security governance rule
|
|
71
|
+
*/
|
|
72
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the rule is enabled
|
|
75
|
+
*/
|
|
76
|
+
readonly isEnabled: pulumi.Output<boolean | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the security governance rule
|
|
79
|
+
*/
|
|
80
|
+
readonly name: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The organization ID of the security governance rule
|
|
83
|
+
*/
|
|
84
|
+
readonly orgId: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The project ID of the security governance rule
|
|
87
|
+
*/
|
|
88
|
+
readonly projectId: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Tags for the security governance rule
|
|
91
|
+
*/
|
|
92
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* Time windows during which the rule is active
|
|
95
|
+
*/
|
|
96
|
+
readonly timeWindows: pulumi.Output<outputs.chaos.SecurityGovernanceRuleV3TimeWindow[]>;
|
|
97
|
+
/**
|
|
98
|
+
* List of user group IDs associated with this rule
|
|
99
|
+
*/
|
|
100
|
+
readonly userGroupIds: pulumi.Output<string[] | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Create a SecurityGovernanceRuleV3 resource with the given unique name, arguments, and options.
|
|
103
|
+
*
|
|
104
|
+
* @param name The _unique_ name of the resource.
|
|
105
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
106
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
107
|
+
*/
|
|
108
|
+
constructor(name: string, args: SecurityGovernanceRuleV3Args, opts?: pulumi.CustomResourceOptions);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Input properties used for looking up and filtering SecurityGovernanceRuleV3 resources.
|
|
112
|
+
*/
|
|
113
|
+
export interface SecurityGovernanceRuleV3State {
|
|
114
|
+
/**
|
|
115
|
+
* List of condition IDs associated with this rule
|
|
116
|
+
*/
|
|
117
|
+
conditionIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
118
|
+
/**
|
|
119
|
+
* Description of the security governance rule
|
|
120
|
+
*/
|
|
121
|
+
description?: pulumi.Input<string | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the rule is enabled
|
|
124
|
+
*/
|
|
125
|
+
isEnabled?: pulumi.Input<boolean | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* Name of the security governance rule
|
|
128
|
+
*/
|
|
129
|
+
name?: pulumi.Input<string | undefined>;
|
|
130
|
+
/**
|
|
131
|
+
* The organization ID of the security governance rule
|
|
132
|
+
*/
|
|
133
|
+
orgId?: pulumi.Input<string | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* The project ID of the security governance rule
|
|
136
|
+
*/
|
|
137
|
+
projectId?: pulumi.Input<string | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* Tags for the security governance rule
|
|
140
|
+
*/
|
|
141
|
+
tags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* Time windows during which the rule is active
|
|
144
|
+
*/
|
|
145
|
+
timeWindows?: pulumi.Input<pulumi.Input<inputs.chaos.SecurityGovernanceRuleV3TimeWindow>[] | undefined>;
|
|
146
|
+
/**
|
|
147
|
+
* List of user group IDs associated with this rule
|
|
148
|
+
*/
|
|
149
|
+
userGroupIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The set of arguments for constructing a SecurityGovernanceRuleV3 resource.
|
|
153
|
+
*/
|
|
154
|
+
export interface SecurityGovernanceRuleV3Args {
|
|
155
|
+
/**
|
|
156
|
+
* List of condition IDs associated with this rule
|
|
157
|
+
*/
|
|
158
|
+
conditionIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
159
|
+
/**
|
|
160
|
+
* Description of the security governance rule
|
|
161
|
+
*/
|
|
162
|
+
description?: pulumi.Input<string | undefined>;
|
|
163
|
+
/**
|
|
164
|
+
* Whether the rule is enabled
|
|
165
|
+
*/
|
|
166
|
+
isEnabled?: pulumi.Input<boolean | undefined>;
|
|
167
|
+
/**
|
|
168
|
+
* Name of the security governance rule
|
|
169
|
+
*/
|
|
170
|
+
name?: pulumi.Input<string | undefined>;
|
|
171
|
+
/**
|
|
172
|
+
* The organization ID of the security governance rule
|
|
173
|
+
*/
|
|
174
|
+
orgId: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The project ID of the security governance rule
|
|
177
|
+
*/
|
|
178
|
+
projectId: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Tags for the security governance rule
|
|
181
|
+
*/
|
|
182
|
+
tags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
183
|
+
/**
|
|
184
|
+
* Time windows during which the rule is active
|
|
185
|
+
*/
|
|
186
|
+
timeWindows: pulumi.Input<pulumi.Input<inputs.chaos.SecurityGovernanceRuleV3TimeWindow>[]>;
|
|
187
|
+
/**
|
|
188
|
+
* List of user group IDs associated with this rule
|
|
189
|
+
*/
|
|
190
|
+
userGroupIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=securityGovernanceRuleV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityGovernanceRuleV3.d.ts","sourceRoot":"","sources":["../../chaos/securityGovernanceRuleV3.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,wBAAwB;IAOlK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,wBAAwB;IAOnE;;OAEG;IACH,SAAwB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9D;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD;;OAE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|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SecurityGovernanceRuleV3 = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Resource for managing a Harness Chaos Security Governance Rule (V3 / REST API).
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as harness from "@pulumi/harness";
|
|
39
|
+
*
|
|
40
|
+
* // Example of a Security Governance Rule (V3)
|
|
41
|
+
* const example = new harness.chaos.SecurityGovernanceRuleV3("example", {
|
|
42
|
+
* orgId: orgId,
|
|
43
|
+
* projectId: projectId,
|
|
44
|
+
* name: "k8s-security-rule",
|
|
45
|
+
* description: "Security governance rule for Kubernetes chaos experiments",
|
|
46
|
+
* isEnabled: true,
|
|
47
|
+
* conditionIds: [k8sCondition.id],
|
|
48
|
+
* userGroupIds: ["_project_all_users"],
|
|
49
|
+
* tags: [
|
|
50
|
+
* "env:prod",
|
|
51
|
+
* "team:security",
|
|
52
|
+
* ],
|
|
53
|
+
* timeWindows: [{
|
|
54
|
+
* timeZone: "UTC",
|
|
55
|
+
* startTime: 1711238400000,
|
|
56
|
+
* duration: "24h",
|
|
57
|
+
* recurrence: {
|
|
58
|
+
* type: "Daily",
|
|
59
|
+
* until: -1,
|
|
60
|
+
* },
|
|
61
|
+
* }],
|
|
62
|
+
* });
|
|
63
|
+
* export const securityGovernanceRuleV3Id = example.id;
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Import
|
|
67
|
+
*
|
|
68
|
+
* The `pulumi import` command can be used, for example:
|
|
69
|
+
*
|
|
70
|
+
* Import Project level Chaos Security Governance Rule (V3)
|
|
71
|
+
*
|
|
72
|
+
* ```sh
|
|
73
|
+
* $ pulumi import harness:chaos/securityGovernanceRuleV3:SecurityGovernanceRuleV3 example org_id/project_id/rule_id
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
class SecurityGovernanceRuleV3 extends pulumi.CustomResource {
|
|
77
|
+
/**
|
|
78
|
+
* Get an existing SecurityGovernanceRuleV3 resource's state with the given name, ID, and optional extra
|
|
79
|
+
* properties used to qualify the lookup.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resulting resource.
|
|
82
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
83
|
+
* @param state Any extra arguments used during the lookup.
|
|
84
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
85
|
+
*/
|
|
86
|
+
static get(name, id, state, opts) {
|
|
87
|
+
return new SecurityGovernanceRuleV3(name, state, { ...opts, id: id });
|
|
88
|
+
}
|
|
89
|
+
/** @internal */
|
|
90
|
+
static __pulumiType = 'harness:chaos/securityGovernanceRuleV3:SecurityGovernanceRuleV3';
|
|
91
|
+
/**
|
|
92
|
+
* Returns true if the given object is an instance of SecurityGovernanceRuleV3. This is designed to work even
|
|
93
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
94
|
+
*/
|
|
95
|
+
static isInstance(obj) {
|
|
96
|
+
if (obj === undefined || obj === null) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
return obj['__pulumiType'] === SecurityGovernanceRuleV3.__pulumiType;
|
|
100
|
+
}
|
|
101
|
+
constructor(name, argsOrState, opts) {
|
|
102
|
+
let resourceInputs = {};
|
|
103
|
+
opts = opts || {};
|
|
104
|
+
if (opts.id) {
|
|
105
|
+
const state = argsOrState;
|
|
106
|
+
resourceInputs["conditionIds"] = state?.conditionIds;
|
|
107
|
+
resourceInputs["description"] = state?.description;
|
|
108
|
+
resourceInputs["isEnabled"] = state?.isEnabled;
|
|
109
|
+
resourceInputs["name"] = state?.name;
|
|
110
|
+
resourceInputs["orgId"] = state?.orgId;
|
|
111
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
112
|
+
resourceInputs["tags"] = state?.tags;
|
|
113
|
+
resourceInputs["timeWindows"] = state?.timeWindows;
|
|
114
|
+
resourceInputs["userGroupIds"] = state?.userGroupIds;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const args = argsOrState;
|
|
118
|
+
if (args?.conditionIds === undefined && !opts.urn) {
|
|
119
|
+
throw new Error("Missing required property 'conditionIds'");
|
|
120
|
+
}
|
|
121
|
+
if (args?.orgId === undefined && !opts.urn) {
|
|
122
|
+
throw new Error("Missing required property 'orgId'");
|
|
123
|
+
}
|
|
124
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
125
|
+
throw new Error("Missing required property 'projectId'");
|
|
126
|
+
}
|
|
127
|
+
if (args?.timeWindows === undefined && !opts.urn) {
|
|
128
|
+
throw new Error("Missing required property 'timeWindows'");
|
|
129
|
+
}
|
|
130
|
+
resourceInputs["conditionIds"] = args?.conditionIds;
|
|
131
|
+
resourceInputs["description"] = args?.description;
|
|
132
|
+
resourceInputs["isEnabled"] = args?.isEnabled;
|
|
133
|
+
resourceInputs["name"] = args?.name;
|
|
134
|
+
resourceInputs["orgId"] = args?.orgId;
|
|
135
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
136
|
+
resourceInputs["tags"] = args?.tags;
|
|
137
|
+
resourceInputs["timeWindows"] = args?.timeWindows;
|
|
138
|
+
resourceInputs["userGroupIds"] = args?.userGroupIds;
|
|
139
|
+
}
|
|
140
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
141
|
+
super(SecurityGovernanceRuleV3.__pulumiType, name, resourceInputs, opts);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.SecurityGovernanceRuleV3 = SecurityGovernanceRuleV3;
|
|
145
|
+
//# sourceMappingURL=securityGovernanceRuleV3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityGovernanceRuleV3.js","sourceRoot":"","sources":["../../chaos/securityGovernanceRuleV3.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,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E,CAAC;;AAjHL,4DAkHC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/harness",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Harness resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "harness",
|
|
26
|
-
"version": "0.14.
|
|
26
|
+
"version": "0.14.2",
|
|
27
27
|
"server": "github://api.github.com/pulumi"
|
|
28
28
|
}
|
|
29
29
|
}
|