@atensec/pulumi-thoth 0.1.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.
@@ -0,0 +1,233 @@
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 PolicySync extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing PolicySync 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?: PolicySyncState, opts?: pulumi.CustomResourceOptions): PolicySync {
18
+ return new PolicySync(name, <any>state, { ...opts, id: id });
19
+ }
20
+
21
+ /** @internal */
22
+ public static readonly __pulumiType = 'thoth:governance/policySync:PolicySync';
23
+
24
+ /**
25
+ * Returns true if the given object is an instance of PolicySync. 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 PolicySync {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === PolicySync.__pulumiType;
33
+ }
34
+
35
+ /**
36
+ * Applied agent IDs as JSON array.
37
+ */
38
+ declare public /*out*/ readonly appliedAgentsJson: pulumi.Output<string>;
39
+ /**
40
+ * Policies applied during sync.
41
+ */
42
+ declare public /*out*/ readonly appliedCount: pulumi.Output<number>;
43
+ /**
44
+ * Whether sync applied changes.
45
+ */
46
+ declare public /*out*/ readonly changed: pulumi.Output<boolean>;
47
+ /**
48
+ * Whether policy sync is configured.
49
+ */
50
+ declare public /*out*/ readonly configured: pulumi.Output<boolean>;
51
+ /**
52
+ * Sync error count.
53
+ */
54
+ declare public /*out*/ readonly errorCount: pulumi.Output<number>;
55
+ /**
56
+ * Sync errors as JSON array.
57
+ */
58
+ declare public /*out*/ readonly errorsJson: pulumi.Output<string>;
59
+ /**
60
+ * Configured enforcer sync interval seconds.
61
+ */
62
+ declare public /*out*/ readonly intervalSeconds: pulumi.Output<number>;
63
+ /**
64
+ * Polling interval when wait_for_completion=true.
65
+ */
66
+ declare public readonly pollIntervalSeconds: pulumi.Output<number | undefined>;
67
+ /**
68
+ * Skipped policy entries count.
69
+ */
70
+ declare public /*out*/ readonly skippedCount: pulumi.Output<number>;
71
+ /**
72
+ * Current policy sync status.
73
+ */
74
+ declare public /*out*/ readonly status: pulumi.Output<string>;
75
+ /**
76
+ * Last sync timestamp.
77
+ */
78
+ declare public /*out*/ readonly syncedAt: pulumi.Output<string>;
79
+ /**
80
+ * Tenant ID from provider configuration.
81
+ */
82
+ declare public /*out*/ readonly tenantId: pulumi.Output<string>;
83
+ /**
84
+ * Polling timeout when wait_for_completion=true.
85
+ */
86
+ declare public readonly timeoutSeconds: pulumi.Output<number | undefined>;
87
+ /**
88
+ * Change this value to force a sync run.
89
+ */
90
+ declare public readonly trigger: pulumi.Output<string | undefined>;
91
+ /**
92
+ * Poll status until terminal state.
93
+ */
94
+ declare public readonly waitForCompletion: pulumi.Output<boolean | undefined>;
95
+
96
+ /**
97
+ * Create a PolicySync resource with the given unique name, arguments, and options.
98
+ *
99
+ * @param name The _unique_ name of the resource.
100
+ * @param args The arguments to use to populate this resource's properties.
101
+ * @param opts A bag of options that control this resource's behavior.
102
+ */
103
+ constructor(name: string, args?: PolicySyncArgs, opts?: pulumi.CustomResourceOptions)
104
+ constructor(name: string, argsOrState?: PolicySyncArgs | PolicySyncState, opts?: pulumi.CustomResourceOptions) {
105
+ let resourceInputs: pulumi.Inputs = {};
106
+ opts = opts || {};
107
+ if (opts.id) {
108
+ const state = argsOrState as PolicySyncState | undefined;
109
+ resourceInputs["appliedAgentsJson"] = state?.appliedAgentsJson;
110
+ resourceInputs["appliedCount"] = state?.appliedCount;
111
+ resourceInputs["changed"] = state?.changed;
112
+ resourceInputs["configured"] = state?.configured;
113
+ resourceInputs["errorCount"] = state?.errorCount;
114
+ resourceInputs["errorsJson"] = state?.errorsJson;
115
+ resourceInputs["intervalSeconds"] = state?.intervalSeconds;
116
+ resourceInputs["pollIntervalSeconds"] = state?.pollIntervalSeconds;
117
+ resourceInputs["skippedCount"] = state?.skippedCount;
118
+ resourceInputs["status"] = state?.status;
119
+ resourceInputs["syncedAt"] = state?.syncedAt;
120
+ resourceInputs["tenantId"] = state?.tenantId;
121
+ resourceInputs["timeoutSeconds"] = state?.timeoutSeconds;
122
+ resourceInputs["trigger"] = state?.trigger;
123
+ resourceInputs["waitForCompletion"] = state?.waitForCompletion;
124
+ } else {
125
+ const args = argsOrState as PolicySyncArgs | undefined;
126
+ resourceInputs["pollIntervalSeconds"] = args?.pollIntervalSeconds;
127
+ resourceInputs["timeoutSeconds"] = args?.timeoutSeconds;
128
+ resourceInputs["trigger"] = args?.trigger;
129
+ resourceInputs["waitForCompletion"] = args?.waitForCompletion;
130
+ resourceInputs["appliedAgentsJson"] = undefined /*out*/;
131
+ resourceInputs["appliedCount"] = undefined /*out*/;
132
+ resourceInputs["changed"] = undefined /*out*/;
133
+ resourceInputs["configured"] = undefined /*out*/;
134
+ resourceInputs["errorCount"] = undefined /*out*/;
135
+ resourceInputs["errorsJson"] = undefined /*out*/;
136
+ resourceInputs["intervalSeconds"] = undefined /*out*/;
137
+ resourceInputs["skippedCount"] = undefined /*out*/;
138
+ resourceInputs["status"] = undefined /*out*/;
139
+ resourceInputs["syncedAt"] = undefined /*out*/;
140
+ resourceInputs["tenantId"] = undefined /*out*/;
141
+ }
142
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
143
+ super(PolicySync.__pulumiType, name, resourceInputs, opts);
144
+ }
145
+ }
146
+
147
+ /**
148
+ * Input properties used for looking up and filtering PolicySync resources.
149
+ */
150
+ export interface PolicySyncState {
151
+ /**
152
+ * Applied agent IDs as JSON array.
153
+ */
154
+ appliedAgentsJson?: pulumi.Input<string | undefined>;
155
+ /**
156
+ * Policies applied during sync.
157
+ */
158
+ appliedCount?: pulumi.Input<number | undefined>;
159
+ /**
160
+ * Whether sync applied changes.
161
+ */
162
+ changed?: pulumi.Input<boolean | undefined>;
163
+ /**
164
+ * Whether policy sync is configured.
165
+ */
166
+ configured?: pulumi.Input<boolean | undefined>;
167
+ /**
168
+ * Sync error count.
169
+ */
170
+ errorCount?: pulumi.Input<number | undefined>;
171
+ /**
172
+ * Sync errors as JSON array.
173
+ */
174
+ errorsJson?: pulumi.Input<string | undefined>;
175
+ /**
176
+ * Configured enforcer sync interval seconds.
177
+ */
178
+ intervalSeconds?: pulumi.Input<number | undefined>;
179
+ /**
180
+ * Polling interval when wait_for_completion=true.
181
+ */
182
+ pollIntervalSeconds?: pulumi.Input<number | undefined>;
183
+ /**
184
+ * Skipped policy entries count.
185
+ */
186
+ skippedCount?: pulumi.Input<number | undefined>;
187
+ /**
188
+ * Current policy sync status.
189
+ */
190
+ status?: pulumi.Input<string | undefined>;
191
+ /**
192
+ * Last sync timestamp.
193
+ */
194
+ syncedAt?: pulumi.Input<string | undefined>;
195
+ /**
196
+ * Tenant ID from provider configuration.
197
+ */
198
+ tenantId?: pulumi.Input<string | undefined>;
199
+ /**
200
+ * Polling timeout when wait_for_completion=true.
201
+ */
202
+ timeoutSeconds?: pulumi.Input<number | undefined>;
203
+ /**
204
+ * Change this value to force a sync run.
205
+ */
206
+ trigger?: pulumi.Input<string | undefined>;
207
+ /**
208
+ * Poll status until terminal state.
209
+ */
210
+ waitForCompletion?: pulumi.Input<boolean | undefined>;
211
+ }
212
+
213
+ /**
214
+ * The set of arguments for constructing a PolicySync resource.
215
+ */
216
+ export interface PolicySyncArgs {
217
+ /**
218
+ * Polling interval when wait_for_completion=true.
219
+ */
220
+ pollIntervalSeconds?: pulumi.Input<number | undefined>;
221
+ /**
222
+ * Polling timeout when wait_for_completion=true.
223
+ */
224
+ timeoutSeconds?: pulumi.Input<number | undefined>;
225
+ /**
226
+ * Change this value to force a sync run.
227
+ */
228
+ trigger?: pulumi.Input<string | undefined>;
229
+ /**
230
+ * Poll status until terminal state.
231
+ */
232
+ waitForCompletion?: pulumi.Input<boolean | undefined>;
233
+ }