@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.
- package/.gitattributes +1 -0
- package/Pulumi.yaml +3 -0
- package/README.md +4 -0
- package/access/apiKey.ts +239 -0
- package/access/getApiKeyMetrics.ts +31 -0
- package/access/index.ts +30 -0
- package/browser/enrollment.ts +218 -0
- package/browser/index.ts +41 -0
- package/browser/policy.ts +256 -0
- package/browser/provider.ts +186 -0
- package/config/index.ts +5 -0
- package/config/vars.ts +119 -0
- package/governance/approvalDecision.ts +141 -0
- package/governance/getFeed.ts +102 -0
- package/governance/getTenantSettings.ts +33 -0
- package/governance/getTools.ts +52 -0
- package/governance/index.ts +72 -0
- package/governance/packAssignment.ts +213 -0
- package/governance/policySync.ts +233 -0
- package/governance/tenantSettings.ts +579 -0
- package/governance/webhookTest.ts +131 -0
- package/index.ts +34 -0
- package/mdm/getSyncJob.ts +53 -0
- package/mdm/index.ts +38 -0
- package/mdm/provider.ts +218 -0
- package/mdm/sync.ts +230 -0
- package/package.json +29 -0
- package/provider.ts +144 -0
- package/tsconfig.json +48 -0
- package/utilities.ts +96 -0
|
@@ -0,0 +1,256 @@
|
|
|
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 Policy extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Policy 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?: PolicyState, opts?: pulumi.CustomResourceOptions): Policy {
|
|
18
|
+
return new Policy(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'thoth:browser/policy:Policy';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Policy. 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 Policy {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === Policy.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Whether the policy is active.
|
|
37
|
+
*/
|
|
38
|
+
declare public readonly active: pulumi.Output<boolean | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Compiled provider-native policy JSON from GovAPI.
|
|
41
|
+
*/
|
|
42
|
+
declare public /*out*/ readonly compiledPolicyJson: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Creation timestamp.
|
|
45
|
+
*/
|
|
46
|
+
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Override createdBy audit value.
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly createdBy: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Policy mode: monitor or enforce.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly enforcementMode: pulumi.Output<string | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Arbitrary metadata JSON object.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly metadataJson: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Policy display name.
|
|
61
|
+
*/
|
|
62
|
+
declare public readonly name: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Policy ID. If omitted on create, GovAPI generates one.
|
|
65
|
+
*/
|
|
66
|
+
declare public readonly policyId: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Policy JSON object.
|
|
69
|
+
*/
|
|
70
|
+
declare public readonly policyJson: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Browser provider slug.
|
|
73
|
+
*/
|
|
74
|
+
declare public readonly providerName: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Tenant ID from provider configuration.
|
|
77
|
+
*/
|
|
78
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Update timestamp.
|
|
81
|
+
*/
|
|
82
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Override updatedBy audit value.
|
|
85
|
+
*/
|
|
86
|
+
declare public readonly updatedBy: pulumi.Output<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Optional explicit policy version.
|
|
89
|
+
*/
|
|
90
|
+
declare public readonly version: pulumi.Output<number | undefined>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Create a Policy resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name: string, args: PolicyArgs, opts?: pulumi.CustomResourceOptions)
|
|
100
|
+
constructor(name: string, argsOrState?: PolicyArgs | PolicyState, opts?: pulumi.CustomResourceOptions) {
|
|
101
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
102
|
+
opts = opts || {};
|
|
103
|
+
if (opts.id) {
|
|
104
|
+
const state = argsOrState as PolicyState | undefined;
|
|
105
|
+
resourceInputs["active"] = state?.active;
|
|
106
|
+
resourceInputs["compiledPolicyJson"] = state?.compiledPolicyJson;
|
|
107
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
108
|
+
resourceInputs["createdBy"] = state?.createdBy;
|
|
109
|
+
resourceInputs["enforcementMode"] = state?.enforcementMode;
|
|
110
|
+
resourceInputs["metadataJson"] = state?.metadataJson;
|
|
111
|
+
resourceInputs["name"] = state?.name;
|
|
112
|
+
resourceInputs["policyId"] = state?.policyId;
|
|
113
|
+
resourceInputs["policyJson"] = state?.policyJson;
|
|
114
|
+
resourceInputs["providerName"] = state?.providerName;
|
|
115
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
116
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
117
|
+
resourceInputs["updatedBy"] = state?.updatedBy;
|
|
118
|
+
resourceInputs["version"] = state?.version;
|
|
119
|
+
} else {
|
|
120
|
+
const args = argsOrState as PolicyArgs | undefined;
|
|
121
|
+
if (args?.name === undefined && !opts.urn) {
|
|
122
|
+
throw new Error("Missing required property 'name'");
|
|
123
|
+
}
|
|
124
|
+
if (args?.policyJson === undefined && !opts.urn) {
|
|
125
|
+
throw new Error("Missing required property 'policyJson'");
|
|
126
|
+
}
|
|
127
|
+
if (args?.providerName === undefined && !opts.urn) {
|
|
128
|
+
throw new Error("Missing required property 'providerName'");
|
|
129
|
+
}
|
|
130
|
+
resourceInputs["active"] = args?.active;
|
|
131
|
+
resourceInputs["createdBy"] = args?.createdBy;
|
|
132
|
+
resourceInputs["enforcementMode"] = args?.enforcementMode;
|
|
133
|
+
resourceInputs["metadataJson"] = args?.metadataJson;
|
|
134
|
+
resourceInputs["name"] = args?.name;
|
|
135
|
+
resourceInputs["policyId"] = args?.policyId;
|
|
136
|
+
resourceInputs["policyJson"] = args?.policyJson;
|
|
137
|
+
resourceInputs["providerName"] = args?.providerName;
|
|
138
|
+
resourceInputs["updatedBy"] = args?.updatedBy;
|
|
139
|
+
resourceInputs["version"] = args?.version;
|
|
140
|
+
resourceInputs["compiledPolicyJson"] = undefined /*out*/;
|
|
141
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
142
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
143
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
144
|
+
}
|
|
145
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
146
|
+
super(Policy.__pulumiType, name, resourceInputs, opts);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Input properties used for looking up and filtering Policy resources.
|
|
152
|
+
*/
|
|
153
|
+
export interface PolicyState {
|
|
154
|
+
/**
|
|
155
|
+
* Whether the policy is active.
|
|
156
|
+
*/
|
|
157
|
+
active?: pulumi.Input<boolean | undefined>;
|
|
158
|
+
/**
|
|
159
|
+
* Compiled provider-native policy JSON from GovAPI.
|
|
160
|
+
*/
|
|
161
|
+
compiledPolicyJson?: pulumi.Input<string | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* Creation timestamp.
|
|
164
|
+
*/
|
|
165
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Override createdBy audit value.
|
|
168
|
+
*/
|
|
169
|
+
createdBy?: pulumi.Input<string | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* Policy mode: monitor or enforce.
|
|
172
|
+
*/
|
|
173
|
+
enforcementMode?: pulumi.Input<string | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* Arbitrary metadata JSON object.
|
|
176
|
+
*/
|
|
177
|
+
metadataJson?: pulumi.Input<string | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* Policy display name.
|
|
180
|
+
*/
|
|
181
|
+
name?: pulumi.Input<string | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Policy ID. If omitted on create, GovAPI generates one.
|
|
184
|
+
*/
|
|
185
|
+
policyId?: pulumi.Input<string | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* Policy JSON object.
|
|
188
|
+
*/
|
|
189
|
+
policyJson?: pulumi.Input<string | undefined>;
|
|
190
|
+
/**
|
|
191
|
+
* Browser provider slug.
|
|
192
|
+
*/
|
|
193
|
+
providerName?: pulumi.Input<string | undefined>;
|
|
194
|
+
/**
|
|
195
|
+
* Tenant ID from provider configuration.
|
|
196
|
+
*/
|
|
197
|
+
tenantId?: pulumi.Input<string | undefined>;
|
|
198
|
+
/**
|
|
199
|
+
* Update timestamp.
|
|
200
|
+
*/
|
|
201
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* Override updatedBy audit value.
|
|
204
|
+
*/
|
|
205
|
+
updatedBy?: pulumi.Input<string | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* Optional explicit policy version.
|
|
208
|
+
*/
|
|
209
|
+
version?: pulumi.Input<number | undefined>;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The set of arguments for constructing a Policy resource.
|
|
214
|
+
*/
|
|
215
|
+
export interface PolicyArgs {
|
|
216
|
+
/**
|
|
217
|
+
* Whether the policy is active.
|
|
218
|
+
*/
|
|
219
|
+
active?: pulumi.Input<boolean | undefined>;
|
|
220
|
+
/**
|
|
221
|
+
* Override createdBy audit value.
|
|
222
|
+
*/
|
|
223
|
+
createdBy?: pulumi.Input<string | undefined>;
|
|
224
|
+
/**
|
|
225
|
+
* Policy mode: monitor or enforce.
|
|
226
|
+
*/
|
|
227
|
+
enforcementMode?: pulumi.Input<string | undefined>;
|
|
228
|
+
/**
|
|
229
|
+
* Arbitrary metadata JSON object.
|
|
230
|
+
*/
|
|
231
|
+
metadataJson?: pulumi.Input<string | undefined>;
|
|
232
|
+
/**
|
|
233
|
+
* Policy display name.
|
|
234
|
+
*/
|
|
235
|
+
name: pulumi.Input<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Policy ID. If omitted on create, GovAPI generates one.
|
|
238
|
+
*/
|
|
239
|
+
policyId?: pulumi.Input<string | undefined>;
|
|
240
|
+
/**
|
|
241
|
+
* Policy JSON object.
|
|
242
|
+
*/
|
|
243
|
+
policyJson: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Browser provider slug.
|
|
246
|
+
*/
|
|
247
|
+
providerName: pulumi.Input<string>;
|
|
248
|
+
/**
|
|
249
|
+
* Override updatedBy audit value.
|
|
250
|
+
*/
|
|
251
|
+
updatedBy?: pulumi.Input<string | undefined>;
|
|
252
|
+
/**
|
|
253
|
+
* Optional explicit policy version.
|
|
254
|
+
*/
|
|
255
|
+
version?: pulumi.Input<number | undefined>;
|
|
256
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
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 Provider extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Provider 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?: ProviderState, opts?: pulumi.CustomResourceOptions): Provider {
|
|
18
|
+
return new Provider(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'thoth:browser/provider:Provider';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Provider. 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 Provider {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Provider-specific config JSON object.
|
|
37
|
+
*/
|
|
38
|
+
declare public readonly configJson: pulumi.Output<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Creation timestamp.
|
|
41
|
+
*/
|
|
42
|
+
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Enable provider integration.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly enabled: pulumi.Output<boolean | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Last integration error string.
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly lastError: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Display name for this provider integration.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly name: pulumi.Output<string | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Browser provider slug: chrome, firefox, safari, island.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly providerName: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Provider status hint (connected, degraded, disconnected).
|
|
61
|
+
*/
|
|
62
|
+
declare public readonly status: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Tenant ID from provider config.
|
|
65
|
+
*/
|
|
66
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Last update timestamp.
|
|
69
|
+
*/
|
|
70
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resource.
|
|
76
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
77
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
78
|
+
*/
|
|
79
|
+
constructor(name: string, args: ProviderArgs, opts?: pulumi.CustomResourceOptions)
|
|
80
|
+
constructor(name: string, argsOrState?: ProviderArgs | ProviderState, opts?: pulumi.CustomResourceOptions) {
|
|
81
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
82
|
+
opts = opts || {};
|
|
83
|
+
if (opts.id) {
|
|
84
|
+
const state = argsOrState as ProviderState | undefined;
|
|
85
|
+
resourceInputs["configJson"] = state?.configJson;
|
|
86
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
87
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
88
|
+
resourceInputs["lastError"] = state?.lastError;
|
|
89
|
+
resourceInputs["name"] = state?.name;
|
|
90
|
+
resourceInputs["providerName"] = state?.providerName;
|
|
91
|
+
resourceInputs["status"] = state?.status;
|
|
92
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
93
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
94
|
+
} else {
|
|
95
|
+
const args = argsOrState as ProviderArgs | undefined;
|
|
96
|
+
if (args?.providerName === undefined && !opts.urn) {
|
|
97
|
+
throw new Error("Missing required property 'providerName'");
|
|
98
|
+
}
|
|
99
|
+
resourceInputs["configJson"] = args?.configJson ? pulumi.secret(args.configJson) : undefined;
|
|
100
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
101
|
+
resourceInputs["lastError"] = args?.lastError;
|
|
102
|
+
resourceInputs["name"] = args?.name;
|
|
103
|
+
resourceInputs["providerName"] = args?.providerName;
|
|
104
|
+
resourceInputs["status"] = args?.status;
|
|
105
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
108
|
+
}
|
|
109
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
|
+
const secretOpts = { additionalSecretOutputs: ["configJson"] };
|
|
111
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
112
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Input properties used for looking up and filtering Provider resources.
|
|
118
|
+
*/
|
|
119
|
+
export interface ProviderState {
|
|
120
|
+
/**
|
|
121
|
+
* Provider-specific config JSON object.
|
|
122
|
+
*/
|
|
123
|
+
configJson?: pulumi.Input<string | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* Creation timestamp.
|
|
126
|
+
*/
|
|
127
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Enable provider integration.
|
|
130
|
+
*/
|
|
131
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* Last integration error string.
|
|
134
|
+
*/
|
|
135
|
+
lastError?: pulumi.Input<string | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* Display name for this provider integration.
|
|
138
|
+
*/
|
|
139
|
+
name?: pulumi.Input<string | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Browser provider slug: chrome, firefox, safari, island.
|
|
142
|
+
*/
|
|
143
|
+
providerName?: pulumi.Input<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Provider status hint (connected, degraded, disconnected).
|
|
146
|
+
*/
|
|
147
|
+
status?: pulumi.Input<string | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* Tenant ID from provider config.
|
|
150
|
+
*/
|
|
151
|
+
tenantId?: pulumi.Input<string | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* Last update timestamp.
|
|
154
|
+
*/
|
|
155
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The set of arguments for constructing a Provider resource.
|
|
160
|
+
*/
|
|
161
|
+
export interface ProviderArgs {
|
|
162
|
+
/**
|
|
163
|
+
* Provider-specific config JSON object.
|
|
164
|
+
*/
|
|
165
|
+
configJson?: pulumi.Input<string | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Enable provider integration.
|
|
168
|
+
*/
|
|
169
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* Last integration error string.
|
|
172
|
+
*/
|
|
173
|
+
lastError?: pulumi.Input<string | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* Display name for this provider integration.
|
|
176
|
+
*/
|
|
177
|
+
name?: pulumi.Input<string | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* Browser provider slug: chrome, firefox, safari, island.
|
|
180
|
+
*/
|
|
181
|
+
providerName: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Provider status hint (connected, degraded, disconnected).
|
|
184
|
+
*/
|
|
185
|
+
status?: pulumi.Input<string | undefined>;
|
|
186
|
+
}
|
package/config/index.ts
ADDED
package/config/vars.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
declare var exports: any;
|
|
8
|
+
const __config = new pulumi.Config("thoth");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Admin bearer token used for authenticated GovAPI requests.
|
|
12
|
+
*/
|
|
13
|
+
export declare const adminBearerToken: string | undefined;
|
|
14
|
+
Object.defineProperty(exports, "adminBearerToken", {
|
|
15
|
+
get() {
|
|
16
|
+
return __config.get("adminBearerToken");
|
|
17
|
+
},
|
|
18
|
+
enumerable: true,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Path to a file containing the admin bearer token.
|
|
23
|
+
*/
|
|
24
|
+
export declare const adminBearerTokenFile: string | undefined;
|
|
25
|
+
Object.defineProperty(exports, "adminBearerTokenFile", {
|
|
26
|
+
get() {
|
|
27
|
+
return __config.get("adminBearerTokenFile");
|
|
28
|
+
},
|
|
29
|
+
enumerable: true,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Apex domain used to derive GovAPI host when apiBaseUrl is omitted. Defaults to atensecurity.com.
|
|
34
|
+
*/
|
|
35
|
+
export declare const apexDomain: string | undefined;
|
|
36
|
+
Object.defineProperty(exports, "apexDomain", {
|
|
37
|
+
get() {
|
|
38
|
+
return __config.get("apexDomain");
|
|
39
|
+
},
|
|
40
|
+
enumerable: true,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* GovAPI base URL override. When omitted, provider derives https://grid.<tenant_id>.<apex_domain>.
|
|
45
|
+
*/
|
|
46
|
+
export declare const apiBaseUrl: string | undefined;
|
|
47
|
+
Object.defineProperty(exports, "apiBaseUrl", {
|
|
48
|
+
get() {
|
|
49
|
+
return __config.get("apiBaseUrl");
|
|
50
|
+
},
|
|
51
|
+
enumerable: true,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Skip TLS certificate verification (development/testing only).
|
|
56
|
+
*/
|
|
57
|
+
export declare const insecureSkipTlsVerify: boolean | undefined;
|
|
58
|
+
Object.defineProperty(exports, "insecureSkipTlsVerify", {
|
|
59
|
+
get() {
|
|
60
|
+
return __config.getObject<boolean>("insecureSkipTlsVerify");
|
|
61
|
+
},
|
|
62
|
+
enumerable: true,
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Per-request timeout in seconds.
|
|
67
|
+
*/
|
|
68
|
+
export declare const requestTimeoutSeconds: number | undefined;
|
|
69
|
+
Object.defineProperty(exports, "requestTimeoutSeconds", {
|
|
70
|
+
get() {
|
|
71
|
+
return __config.getObject<number>("requestTimeoutSeconds");
|
|
72
|
+
},
|
|
73
|
+
enumerable: true,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Base delay in milliseconds for exponential retry backoff.
|
|
78
|
+
*/
|
|
79
|
+
export declare const retryBaseDelayMs: number | undefined;
|
|
80
|
+
Object.defineProperty(exports, "retryBaseDelayMs", {
|
|
81
|
+
get() {
|
|
82
|
+
return __config.getObject<number>("retryBaseDelayMs");
|
|
83
|
+
},
|
|
84
|
+
enumerable: true,
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Maximum retry attempts for transient API/network failures.
|
|
89
|
+
*/
|
|
90
|
+
export declare const retryMaxAttempts: number | undefined;
|
|
91
|
+
Object.defineProperty(exports, "retryMaxAttempts", {
|
|
92
|
+
get() {
|
|
93
|
+
return __config.getObject<number>("retryMaxAttempts");
|
|
94
|
+
},
|
|
95
|
+
enumerable: true,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Maximum delay in milliseconds for retry backoff.
|
|
100
|
+
*/
|
|
101
|
+
export declare const retryMaxDelayMs: number | undefined;
|
|
102
|
+
Object.defineProperty(exports, "retryMaxDelayMs", {
|
|
103
|
+
get() {
|
|
104
|
+
return __config.getObject<number>("retryMaxDelayMs");
|
|
105
|
+
},
|
|
106
|
+
enumerable: true,
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Tenant slug used in GovAPI route scoping.
|
|
111
|
+
*/
|
|
112
|
+
export declare const tenantId: string | undefined;
|
|
113
|
+
Object.defineProperty(exports, "tenantId", {
|
|
114
|
+
get() {
|
|
115
|
+
return __config.get("tenantId");
|
|
116
|
+
},
|
|
117
|
+
enumerable: true,
|
|
118
|
+
});
|
|
119
|
+
|