@atensec/pulumi-thoth 0.1.12 → 0.1.13
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/bin/governance/getBoardIncidentSummary.d.ts +27 -0
- package/bin/governance/getBoardIncidentSummary.d.ts.map +1 -0
- package/bin/governance/getBoardIncidentSummary.js +45 -0
- package/bin/governance/getBoardIncidentSummary.js.map +1 -0
- package/bin/governance/getCostReport.d.ts +8 -0
- package/bin/governance/getCostReport.d.ts.map +1 -1
- package/bin/governance/getCostReport.js.map +1 -1
- package/bin/governance/getExecutiveSummary.d.ts +30 -0
- package/bin/governance/getExecutiveSummary.d.ts.map +1 -0
- package/bin/governance/getExecutiveSummary.js +49 -0
- package/bin/governance/getExecutiveSummary.js.map +1 -0
- package/bin/governance/getPolicyChangeArtifact.d.ts +30 -0
- package/bin/governance/getPolicyChangeArtifact.d.ts.map +1 -0
- package/bin/governance/getPolicyChangeArtifact.js +45 -0
- package/bin/governance/getPolicyChangeArtifact.js.map +1 -0
- package/bin/governance/getPolicyChangeArtifacts.d.ts +34 -0
- package/bin/governance/getPolicyChangeArtifacts.d.ts.map +1 -0
- package/bin/governance/getPolicyChangeArtifacts.js +51 -0
- package/bin/governance/getPolicyChangeArtifacts.js.map +1 -0
- package/bin/governance/getPolicyException.d.ts +31 -0
- package/bin/governance/getPolicyException.d.ts.map +1 -0
- package/bin/governance/getPolicyException.js +45 -0
- package/bin/governance/getPolicyException.js.map +1 -0
- package/bin/governance/getPolicyExceptions.d.ts +40 -0
- package/bin/governance/getPolicyExceptions.d.ts.map +1 -0
- package/bin/governance/getPolicyExceptions.js +55 -0
- package/bin/governance/getPolicyExceptions.js.map +1 -0
- package/bin/governance/index.d.ts +27 -0
- package/bin/governance/index.d.ts.map +1 -1
- package/bin/governance/index.js +35 -2
- package/bin/governance/index.js.map +1 -1
- package/bin/governance/policyChangeArtifactApply.d.ts +201 -0
- package/bin/governance/policyChangeArtifactApply.d.ts.map +1 -0
- package/bin/governance/policyChangeArtifactApply.js +108 -0
- package/bin/governance/policyChangeArtifactApply.js.map +1 -0
- package/bin/governance/policyException.d.ts +221 -0
- package/bin/governance/policyException.d.ts.map +1 -0
- package/bin/governance/policyException.js +121 -0
- package/bin/governance/policyException.js.map +1 -0
- package/bin/governance/policyExceptionReview.d.ts +165 -0
- package/bin/governance/policyExceptionReview.d.ts.map +1 -0
- package/bin/governance/policyExceptionReview.js +103 -0
- package/bin/governance/policyExceptionReview.js.map +1 -0
- package/bin/mcp/getInventoryDigest.d.ts +32 -0
- package/bin/mcp/getInventoryDigest.d.ts.map +1 -0
- package/bin/mcp/getInventoryDigest.js +47 -0
- package/bin/mcp/getInventoryDigest.js.map +1 -0
- package/bin/mcp/index.d.ts +3 -0
- package/bin/mcp/index.d.ts.map +1 -1
- package/bin/mcp/index.js +4 -1
- package/bin/mcp/index.js.map +1 -1
- package/bin/utilities.js +1 -1
- package/bin/utilities.js.map +1 -1
- package/governance/getBoardIncidentSummary.ts +44 -0
- package/governance/getCostReport.ts +8 -0
- package/governance/getExecutiveSummary.ts +51 -0
- package/governance/getPolicyChangeArtifact.ts +47 -0
- package/governance/getPolicyChangeArtifacts.ts +57 -0
- package/governance/getPolicyException.ts +48 -0
- package/governance/getPolicyExceptions.ts +67 -0
- package/governance/index.ts +54 -0
- package/governance/policyChangeArtifactApply.ts +269 -0
- package/governance/policyException.ts +302 -0
- package/governance/policyExceptionReview.ts +228 -0
- package/mcp/getInventoryDigest.ts +51 -0
- package/mcp/index.ts +5 -0
- package/package.json +3 -2
- package/tsconfig.json +10 -0
- package/utilities.ts +1 -1
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export class PolicyChangeArtifactApply extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing PolicyChangeArtifactApply resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PolicyChangeArtifactApplyState, opts?: pulumi.CustomResourceOptions): PolicyChangeArtifactApply {
|
|
18
|
+
return new PolicyChangeArtifactApply(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'thoth:governance/policyChangeArtifactApply:PolicyChangeArtifactApply';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of PolicyChangeArtifactApply. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
public static isInstance(obj: any): obj is PolicyChangeArtifactApply {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === PolicyChangeArtifactApply.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Apply execution timestamp.
|
|
37
|
+
*/
|
|
38
|
+
declare public /*out*/ readonly appliedAt: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Actor applying the artifact.
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly appliedBy: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Apply channel to use. Defaults to govapi.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly applyChannel: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Artifact ID used for apply.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly artifactId: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Optional assignment targets for govapi policy bundle apply.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly assignments: pulumi.Output<string[] | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Optional bundle description for govapi apply.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly bundleDescription: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Optional override bundle name for govapi apply.
|
|
61
|
+
*/
|
|
62
|
+
declare public readonly bundleName: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Optional enforcement mode override (enforce or observe).
|
|
65
|
+
*/
|
|
66
|
+
declare public readonly enforcementMode: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* GovAPI resource returned by apply operation as JSON.
|
|
69
|
+
*/
|
|
70
|
+
declare public /*out*/ readonly govapiResourceJson: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Whether a temporary runtime override was revoked after apply.
|
|
73
|
+
*/
|
|
74
|
+
declare public /*out*/ readonly overrideRevoked: pulumi.Output<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Preferred policy format for apply payload (cedar, rego, yaml).
|
|
77
|
+
*/
|
|
78
|
+
declare public readonly policyFormat: pulumi.Output<string | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Policy exception request ID.
|
|
81
|
+
*/
|
|
82
|
+
declare public readonly requestId: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Full apply response as JSON.
|
|
85
|
+
*/
|
|
86
|
+
declare public /*out*/ readonly responseJson: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Optional policy bundle status override (active, staged, paused, disabled).
|
|
89
|
+
*/
|
|
90
|
+
declare public readonly status: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Target environment for the apply operation.
|
|
93
|
+
*/
|
|
94
|
+
declare public /*out*/ readonly targetEnvironment: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Tenant ID from provider configuration.
|
|
97
|
+
*/
|
|
98
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string>;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Create a PolicyChangeArtifactApply resource with the given unique name, arguments, and options.
|
|
102
|
+
*
|
|
103
|
+
* @param name The _unique_ name of the resource.
|
|
104
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
105
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
106
|
+
*/
|
|
107
|
+
constructor(name: string, args: PolicyChangeArtifactApplyArgs, opts?: pulumi.CustomResourceOptions)
|
|
108
|
+
constructor(name: string, argsOrState?: PolicyChangeArtifactApplyArgs | PolicyChangeArtifactApplyState, opts?: pulumi.CustomResourceOptions) {
|
|
109
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
110
|
+
opts = opts || {};
|
|
111
|
+
if (opts.id) {
|
|
112
|
+
const state = argsOrState as PolicyChangeArtifactApplyState | undefined;
|
|
113
|
+
resourceInputs["appliedAt"] = state?.appliedAt;
|
|
114
|
+
resourceInputs["appliedBy"] = state?.appliedBy;
|
|
115
|
+
resourceInputs["applyChannel"] = state?.applyChannel;
|
|
116
|
+
resourceInputs["artifactId"] = state?.artifactId;
|
|
117
|
+
resourceInputs["assignments"] = state?.assignments;
|
|
118
|
+
resourceInputs["bundleDescription"] = state?.bundleDescription;
|
|
119
|
+
resourceInputs["bundleName"] = state?.bundleName;
|
|
120
|
+
resourceInputs["enforcementMode"] = state?.enforcementMode;
|
|
121
|
+
resourceInputs["govapiResourceJson"] = state?.govapiResourceJson;
|
|
122
|
+
resourceInputs["overrideRevoked"] = state?.overrideRevoked;
|
|
123
|
+
resourceInputs["policyFormat"] = state?.policyFormat;
|
|
124
|
+
resourceInputs["requestId"] = state?.requestId;
|
|
125
|
+
resourceInputs["responseJson"] = state?.responseJson;
|
|
126
|
+
resourceInputs["status"] = state?.status;
|
|
127
|
+
resourceInputs["targetEnvironment"] = state?.targetEnvironment;
|
|
128
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
129
|
+
} else {
|
|
130
|
+
const args = argsOrState as PolicyChangeArtifactApplyArgs | undefined;
|
|
131
|
+
if (args?.appliedBy === undefined && !opts.urn) {
|
|
132
|
+
throw new Error("Missing required property 'appliedBy'");
|
|
133
|
+
}
|
|
134
|
+
if (args?.requestId === undefined && !opts.urn) {
|
|
135
|
+
throw new Error("Missing required property 'requestId'");
|
|
136
|
+
}
|
|
137
|
+
resourceInputs["appliedBy"] = args?.appliedBy;
|
|
138
|
+
resourceInputs["applyChannel"] = args?.applyChannel;
|
|
139
|
+
resourceInputs["assignments"] = args?.assignments;
|
|
140
|
+
resourceInputs["bundleDescription"] = args?.bundleDescription;
|
|
141
|
+
resourceInputs["bundleName"] = args?.bundleName;
|
|
142
|
+
resourceInputs["enforcementMode"] = args?.enforcementMode;
|
|
143
|
+
resourceInputs["policyFormat"] = args?.policyFormat;
|
|
144
|
+
resourceInputs["requestId"] = args?.requestId;
|
|
145
|
+
resourceInputs["status"] = args?.status;
|
|
146
|
+
resourceInputs["appliedAt"] = undefined /*out*/;
|
|
147
|
+
resourceInputs["artifactId"] = undefined /*out*/;
|
|
148
|
+
resourceInputs["govapiResourceJson"] = undefined /*out*/;
|
|
149
|
+
resourceInputs["overrideRevoked"] = undefined /*out*/;
|
|
150
|
+
resourceInputs["responseJson"] = undefined /*out*/;
|
|
151
|
+
resourceInputs["targetEnvironment"] = undefined /*out*/;
|
|
152
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
153
|
+
}
|
|
154
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
155
|
+
super(PolicyChangeArtifactApply.__pulumiType, name, resourceInputs, opts);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Input properties used for looking up and filtering PolicyChangeArtifactApply resources.
|
|
161
|
+
*/
|
|
162
|
+
export interface PolicyChangeArtifactApplyState {
|
|
163
|
+
/**
|
|
164
|
+
* Apply execution timestamp.
|
|
165
|
+
*/
|
|
166
|
+
appliedAt?: pulumi.Input<string | undefined>;
|
|
167
|
+
/**
|
|
168
|
+
* Actor applying the artifact.
|
|
169
|
+
*/
|
|
170
|
+
appliedBy?: pulumi.Input<string | undefined>;
|
|
171
|
+
/**
|
|
172
|
+
* Apply channel to use. Defaults to govapi.
|
|
173
|
+
*/
|
|
174
|
+
applyChannel?: pulumi.Input<string | undefined>;
|
|
175
|
+
/**
|
|
176
|
+
* Artifact ID used for apply.
|
|
177
|
+
*/
|
|
178
|
+
artifactId?: pulumi.Input<string | undefined>;
|
|
179
|
+
/**
|
|
180
|
+
* Optional assignment targets for govapi policy bundle apply.
|
|
181
|
+
*/
|
|
182
|
+
assignments?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
183
|
+
/**
|
|
184
|
+
* Optional bundle description for govapi apply.
|
|
185
|
+
*/
|
|
186
|
+
bundleDescription?: pulumi.Input<string | undefined>;
|
|
187
|
+
/**
|
|
188
|
+
* Optional override bundle name for govapi apply.
|
|
189
|
+
*/
|
|
190
|
+
bundleName?: pulumi.Input<string | undefined>;
|
|
191
|
+
/**
|
|
192
|
+
* Optional enforcement mode override (enforce or observe).
|
|
193
|
+
*/
|
|
194
|
+
enforcementMode?: pulumi.Input<string | undefined>;
|
|
195
|
+
/**
|
|
196
|
+
* GovAPI resource returned by apply operation as JSON.
|
|
197
|
+
*/
|
|
198
|
+
govapiResourceJson?: pulumi.Input<string | undefined>;
|
|
199
|
+
/**
|
|
200
|
+
* Whether a temporary runtime override was revoked after apply.
|
|
201
|
+
*/
|
|
202
|
+
overrideRevoked?: pulumi.Input<boolean | undefined>;
|
|
203
|
+
/**
|
|
204
|
+
* Preferred policy format for apply payload (cedar, rego, yaml).
|
|
205
|
+
*/
|
|
206
|
+
policyFormat?: pulumi.Input<string | undefined>;
|
|
207
|
+
/**
|
|
208
|
+
* Policy exception request ID.
|
|
209
|
+
*/
|
|
210
|
+
requestId?: pulumi.Input<string | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* Full apply response as JSON.
|
|
213
|
+
*/
|
|
214
|
+
responseJson?: pulumi.Input<string | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* Optional policy bundle status override (active, staged, paused, disabled).
|
|
217
|
+
*/
|
|
218
|
+
status?: pulumi.Input<string | undefined>;
|
|
219
|
+
/**
|
|
220
|
+
* Target environment for the apply operation.
|
|
221
|
+
*/
|
|
222
|
+
targetEnvironment?: pulumi.Input<string | undefined>;
|
|
223
|
+
/**
|
|
224
|
+
* Tenant ID from provider configuration.
|
|
225
|
+
*/
|
|
226
|
+
tenantId?: pulumi.Input<string | undefined>;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The set of arguments for constructing a PolicyChangeArtifactApply resource.
|
|
231
|
+
*/
|
|
232
|
+
export interface PolicyChangeArtifactApplyArgs {
|
|
233
|
+
/**
|
|
234
|
+
* Actor applying the artifact.
|
|
235
|
+
*/
|
|
236
|
+
appliedBy: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* Apply channel to use. Defaults to govapi.
|
|
239
|
+
*/
|
|
240
|
+
applyChannel?: pulumi.Input<string | undefined>;
|
|
241
|
+
/**
|
|
242
|
+
* Optional assignment targets for govapi policy bundle apply.
|
|
243
|
+
*/
|
|
244
|
+
assignments?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* Optional bundle description for govapi apply.
|
|
247
|
+
*/
|
|
248
|
+
bundleDescription?: pulumi.Input<string | undefined>;
|
|
249
|
+
/**
|
|
250
|
+
* Optional override bundle name for govapi apply.
|
|
251
|
+
*/
|
|
252
|
+
bundleName?: pulumi.Input<string | undefined>;
|
|
253
|
+
/**
|
|
254
|
+
* Optional enforcement mode override (enforce or observe).
|
|
255
|
+
*/
|
|
256
|
+
enforcementMode?: pulumi.Input<string | undefined>;
|
|
257
|
+
/**
|
|
258
|
+
* Preferred policy format for apply payload (cedar, rego, yaml).
|
|
259
|
+
*/
|
|
260
|
+
policyFormat?: pulumi.Input<string | undefined>;
|
|
261
|
+
/**
|
|
262
|
+
* Policy exception request ID.
|
|
263
|
+
*/
|
|
264
|
+
requestId: pulumi.Input<string>;
|
|
265
|
+
/**
|
|
266
|
+
* Optional policy bundle status override (active, staged, paused, disabled).
|
|
267
|
+
*/
|
|
268
|
+
status?: pulumi.Input<string | undefined>;
|
|
269
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export class PolicyException extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing PolicyException resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PolicyExceptionState, opts?: pulumi.CustomResourceOptions): PolicyException {
|
|
18
|
+
return new PolicyException(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'thoth:governance/policyException:PolicyException';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of PolicyException. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
public static isInstance(obj: any): obj is PolicyException {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === PolicyException.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Agent ID associated with the request.
|
|
37
|
+
*/
|
|
38
|
+
declare public readonly agentId: pulumi.Output<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Optional alternatives reviewed before requesting an exception.
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly alternativesConsidered: pulumi.Output<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* Business reason for requesting the exception.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly businessJustification: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Creation timestamp.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Data sensitivity level touched by this exception.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly dataSensitivity: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* How often this exception is expected to occur.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly frequencyEstimate: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Optional hold token when exception is tied to STEP_UP workflow.
|
|
61
|
+
*/
|
|
62
|
+
declare public readonly holdToken: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Policy change metadata returned by the review flow.
|
|
65
|
+
*/
|
|
66
|
+
declare public /*out*/ readonly policyChangeJson: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Optional request ID. If omitted, enforcer generates one.
|
|
69
|
+
*/
|
|
70
|
+
declare public readonly requestId: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Requester identity.
|
|
73
|
+
*/
|
|
74
|
+
declare public readonly requestedBy: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Review decision when present.
|
|
77
|
+
*/
|
|
78
|
+
declare public /*out*/ readonly reviewDecision: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Review notes when present.
|
|
81
|
+
*/
|
|
82
|
+
declare public /*out*/ readonly reviewNotes: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Reviewer identity when present.
|
|
85
|
+
*/
|
|
86
|
+
declare public /*out*/ readonly reviewedBy: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Current policy exception status.
|
|
89
|
+
*/
|
|
90
|
+
declare public /*out*/ readonly status: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Tenant ID from provider configuration.
|
|
93
|
+
*/
|
|
94
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Tool/action name associated with the request.
|
|
97
|
+
*/
|
|
98
|
+
declare public readonly toolName: pulumi.Output<string | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Last update timestamp.
|
|
101
|
+
*/
|
|
102
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Violation ID associated with this exception request.
|
|
105
|
+
*/
|
|
106
|
+
declare public readonly violationId: pulumi.Output<string>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Create a PolicyException resource with the given unique name, arguments, and options.
|
|
110
|
+
*
|
|
111
|
+
* @param name The _unique_ name of the resource.
|
|
112
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
113
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
114
|
+
*/
|
|
115
|
+
constructor(name: string, args: PolicyExceptionArgs, opts?: pulumi.CustomResourceOptions)
|
|
116
|
+
constructor(name: string, argsOrState?: PolicyExceptionArgs | PolicyExceptionState, opts?: pulumi.CustomResourceOptions) {
|
|
117
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
118
|
+
opts = opts || {};
|
|
119
|
+
if (opts.id) {
|
|
120
|
+
const state = argsOrState as PolicyExceptionState | undefined;
|
|
121
|
+
resourceInputs["agentId"] = state?.agentId;
|
|
122
|
+
resourceInputs["alternativesConsidered"] = state?.alternativesConsidered;
|
|
123
|
+
resourceInputs["businessJustification"] = state?.businessJustification;
|
|
124
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
125
|
+
resourceInputs["dataSensitivity"] = state?.dataSensitivity;
|
|
126
|
+
resourceInputs["frequencyEstimate"] = state?.frequencyEstimate;
|
|
127
|
+
resourceInputs["holdToken"] = state?.holdToken;
|
|
128
|
+
resourceInputs["policyChangeJson"] = state?.policyChangeJson;
|
|
129
|
+
resourceInputs["requestId"] = state?.requestId;
|
|
130
|
+
resourceInputs["requestedBy"] = state?.requestedBy;
|
|
131
|
+
resourceInputs["reviewDecision"] = state?.reviewDecision;
|
|
132
|
+
resourceInputs["reviewNotes"] = state?.reviewNotes;
|
|
133
|
+
resourceInputs["reviewedBy"] = state?.reviewedBy;
|
|
134
|
+
resourceInputs["status"] = state?.status;
|
|
135
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
136
|
+
resourceInputs["toolName"] = state?.toolName;
|
|
137
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
138
|
+
resourceInputs["violationId"] = state?.violationId;
|
|
139
|
+
} else {
|
|
140
|
+
const args = argsOrState as PolicyExceptionArgs | undefined;
|
|
141
|
+
if (args?.businessJustification === undefined && !opts.urn) {
|
|
142
|
+
throw new Error("Missing required property 'businessJustification'");
|
|
143
|
+
}
|
|
144
|
+
if (args?.dataSensitivity === undefined && !opts.urn) {
|
|
145
|
+
throw new Error("Missing required property 'dataSensitivity'");
|
|
146
|
+
}
|
|
147
|
+
if (args?.frequencyEstimate === undefined && !opts.urn) {
|
|
148
|
+
throw new Error("Missing required property 'frequencyEstimate'");
|
|
149
|
+
}
|
|
150
|
+
if (args?.requestedBy === undefined && !opts.urn) {
|
|
151
|
+
throw new Error("Missing required property 'requestedBy'");
|
|
152
|
+
}
|
|
153
|
+
if (args?.violationId === undefined && !opts.urn) {
|
|
154
|
+
throw new Error("Missing required property 'violationId'");
|
|
155
|
+
}
|
|
156
|
+
resourceInputs["agentId"] = args?.agentId;
|
|
157
|
+
resourceInputs["alternativesConsidered"] = args?.alternativesConsidered;
|
|
158
|
+
resourceInputs["businessJustification"] = args?.businessJustification;
|
|
159
|
+
resourceInputs["dataSensitivity"] = args?.dataSensitivity;
|
|
160
|
+
resourceInputs["frequencyEstimate"] = args?.frequencyEstimate;
|
|
161
|
+
resourceInputs["holdToken"] = args?.holdToken;
|
|
162
|
+
resourceInputs["requestId"] = args?.requestId;
|
|
163
|
+
resourceInputs["requestedBy"] = args?.requestedBy;
|
|
164
|
+
resourceInputs["toolName"] = args?.toolName;
|
|
165
|
+
resourceInputs["violationId"] = args?.violationId;
|
|
166
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
167
|
+
resourceInputs["policyChangeJson"] = undefined /*out*/;
|
|
168
|
+
resourceInputs["reviewDecision"] = undefined /*out*/;
|
|
169
|
+
resourceInputs["reviewNotes"] = undefined /*out*/;
|
|
170
|
+
resourceInputs["reviewedBy"] = undefined /*out*/;
|
|
171
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
172
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
173
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
174
|
+
}
|
|
175
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
176
|
+
super(PolicyException.__pulumiType, name, resourceInputs, opts);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Input properties used for looking up and filtering PolicyException resources.
|
|
182
|
+
*/
|
|
183
|
+
export interface PolicyExceptionState {
|
|
184
|
+
/**
|
|
185
|
+
* Agent ID associated with the request.
|
|
186
|
+
*/
|
|
187
|
+
agentId?: pulumi.Input<string | undefined>;
|
|
188
|
+
/**
|
|
189
|
+
* Optional alternatives reviewed before requesting an exception.
|
|
190
|
+
*/
|
|
191
|
+
alternativesConsidered?: pulumi.Input<string | undefined>;
|
|
192
|
+
/**
|
|
193
|
+
* Business reason for requesting the exception.
|
|
194
|
+
*/
|
|
195
|
+
businessJustification?: pulumi.Input<string | undefined>;
|
|
196
|
+
/**
|
|
197
|
+
* Creation timestamp.
|
|
198
|
+
*/
|
|
199
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
200
|
+
/**
|
|
201
|
+
* Data sensitivity level touched by this exception.
|
|
202
|
+
*/
|
|
203
|
+
dataSensitivity?: pulumi.Input<string | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* How often this exception is expected to occur.
|
|
206
|
+
*/
|
|
207
|
+
frequencyEstimate?: pulumi.Input<string | undefined>;
|
|
208
|
+
/**
|
|
209
|
+
* Optional hold token when exception is tied to STEP_UP workflow.
|
|
210
|
+
*/
|
|
211
|
+
holdToken?: pulumi.Input<string | undefined>;
|
|
212
|
+
/**
|
|
213
|
+
* Policy change metadata returned by the review flow.
|
|
214
|
+
*/
|
|
215
|
+
policyChangeJson?: pulumi.Input<string | undefined>;
|
|
216
|
+
/**
|
|
217
|
+
* Optional request ID. If omitted, enforcer generates one.
|
|
218
|
+
*/
|
|
219
|
+
requestId?: pulumi.Input<string | undefined>;
|
|
220
|
+
/**
|
|
221
|
+
* Requester identity.
|
|
222
|
+
*/
|
|
223
|
+
requestedBy?: pulumi.Input<string | undefined>;
|
|
224
|
+
/**
|
|
225
|
+
* Review decision when present.
|
|
226
|
+
*/
|
|
227
|
+
reviewDecision?: pulumi.Input<string | undefined>;
|
|
228
|
+
/**
|
|
229
|
+
* Review notes when present.
|
|
230
|
+
*/
|
|
231
|
+
reviewNotes?: pulumi.Input<string | undefined>;
|
|
232
|
+
/**
|
|
233
|
+
* Reviewer identity when present.
|
|
234
|
+
*/
|
|
235
|
+
reviewedBy?: pulumi.Input<string | undefined>;
|
|
236
|
+
/**
|
|
237
|
+
* Current policy exception status.
|
|
238
|
+
*/
|
|
239
|
+
status?: pulumi.Input<string | undefined>;
|
|
240
|
+
/**
|
|
241
|
+
* Tenant ID from provider configuration.
|
|
242
|
+
*/
|
|
243
|
+
tenantId?: pulumi.Input<string | undefined>;
|
|
244
|
+
/**
|
|
245
|
+
* Tool/action name associated with the request.
|
|
246
|
+
*/
|
|
247
|
+
toolName?: pulumi.Input<string | undefined>;
|
|
248
|
+
/**
|
|
249
|
+
* Last update timestamp.
|
|
250
|
+
*/
|
|
251
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
252
|
+
/**
|
|
253
|
+
* Violation ID associated with this exception request.
|
|
254
|
+
*/
|
|
255
|
+
violationId?: pulumi.Input<string | undefined>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* The set of arguments for constructing a PolicyException resource.
|
|
260
|
+
*/
|
|
261
|
+
export interface PolicyExceptionArgs {
|
|
262
|
+
/**
|
|
263
|
+
* Agent ID associated with the request.
|
|
264
|
+
*/
|
|
265
|
+
agentId?: pulumi.Input<string | undefined>;
|
|
266
|
+
/**
|
|
267
|
+
* Optional alternatives reviewed before requesting an exception.
|
|
268
|
+
*/
|
|
269
|
+
alternativesConsidered?: pulumi.Input<string | undefined>;
|
|
270
|
+
/**
|
|
271
|
+
* Business reason for requesting the exception.
|
|
272
|
+
*/
|
|
273
|
+
businessJustification: pulumi.Input<string>;
|
|
274
|
+
/**
|
|
275
|
+
* Data sensitivity level touched by this exception.
|
|
276
|
+
*/
|
|
277
|
+
dataSensitivity: pulumi.Input<string>;
|
|
278
|
+
/**
|
|
279
|
+
* How often this exception is expected to occur.
|
|
280
|
+
*/
|
|
281
|
+
frequencyEstimate: pulumi.Input<string>;
|
|
282
|
+
/**
|
|
283
|
+
* Optional hold token when exception is tied to STEP_UP workflow.
|
|
284
|
+
*/
|
|
285
|
+
holdToken?: pulumi.Input<string | undefined>;
|
|
286
|
+
/**
|
|
287
|
+
* Optional request ID. If omitted, enforcer generates one.
|
|
288
|
+
*/
|
|
289
|
+
requestId?: pulumi.Input<string | undefined>;
|
|
290
|
+
/**
|
|
291
|
+
* Requester identity.
|
|
292
|
+
*/
|
|
293
|
+
requestedBy: pulumi.Input<string>;
|
|
294
|
+
/**
|
|
295
|
+
* Tool/action name associated with the request.
|
|
296
|
+
*/
|
|
297
|
+
toolName?: pulumi.Input<string | undefined>;
|
|
298
|
+
/**
|
|
299
|
+
* Violation ID associated with this exception request.
|
|
300
|
+
*/
|
|
301
|
+
violationId: pulumi.Input<string>;
|
|
302
|
+
}
|