@atensec/pulumi-thoth 0.1.3 → 0.1.4
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/access/{apiKey.ts → agentApiKey.ts} +29 -33
- package/access/endpointApiKey.ts +235 -0
- package/access/fleetApiKey.ts +235 -0
- package/access/getApiKeyAuthorization.ts +72 -0
- package/access/getApiKeys.ts +57 -0
- package/access/index.ts +33 -7
- package/billing/getInvoices.ts +49 -0
- package/billing/getMonthlyCost.ts +27 -0
- package/billing/getPricing.ts +27 -0
- package/billing/getReport.ts +49 -0
- package/billing/getReports.ts +29 -0
- package/billing/index.ts +31 -0
- package/browser/getEnrollments.ts +52 -0
- package/browser/getPolicies.ts +47 -0
- package/browser/getProviders.ts +28 -0
- package/browser/index.ts +15 -0
- package/config/vars.ts +3 -3
- package/fleet/fleet.ts +292 -0
- package/fleet/getEndpointStats.ts +36 -0
- package/fleet/getEndpoints.ts +52 -0
- package/fleet/getFleet.ts +48 -0
- package/fleet/getFleets.ts +57 -0
- package/fleet/index.ts +45 -0
- package/governance/getApprovals.ts +57 -0
- package/governance/getCostReport.ts +51 -0
- package/governance/getDay7Report.ts +46 -0
- package/governance/getEvidenceBundle.ts +47 -0
- package/governance/getEvidenceChain.ts +53 -0
- package/governance/getEvidenceVerify.ts +50 -0
- package/governance/getPacks.ts +28 -0
- package/governance/getReportsOverview.ts +46 -0
- package/governance/getRuntimeStatus.ts +46 -0
- package/governance/{tenantSettings.ts → governanceSettings.ts} +18 -244
- package/governance/index.ts +76 -7
- package/governance/pamSettings.ts +187 -0
- package/governance/siemSettings.ts +159 -0
- package/governance/webhookSettings.ts +145 -0
- package/index.ts +4 -0
- package/mdm/getProviders.ts +28 -0
- package/mdm/index.ts +5 -0
- package/package.json +1 -1
- package/provider.ts +9 -12
- package/tsconfig.json +34 -2
package/fleet/fleet.ts
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
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 Fleet extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Fleet 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?: FleetState, opts?: pulumi.CustomResourceOptions): Fleet {
|
|
18
|
+
return new Fleet(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'thoth:fleet/fleet:Fleet';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Fleet. 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 Fleet {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === Fleet.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Compliance percentage.
|
|
37
|
+
*/
|
|
38
|
+
declare public /*out*/ readonly compliancePct: pulumi.Output<number>;
|
|
39
|
+
/**
|
|
40
|
+
* Creation timestamp.
|
|
41
|
+
*/
|
|
42
|
+
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Percent drift detected.
|
|
45
|
+
*/
|
|
46
|
+
declare public /*out*/ readonly driftPct: pulumi.Output<number>;
|
|
47
|
+
/**
|
|
48
|
+
* Drifted endpoint count.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly driftedEndpointCount: pulumi.Output<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Endpoint count in this fleet.
|
|
53
|
+
*/
|
|
54
|
+
declare public /*out*/ readonly endpointCount: pulumi.Output<number>;
|
|
55
|
+
/**
|
|
56
|
+
* Fleet code.
|
|
57
|
+
*/
|
|
58
|
+
declare public /*out*/ readonly fleetCode: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Fleet identifier.
|
|
61
|
+
*/
|
|
62
|
+
declare public /*out*/ readonly fleetId: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Last deployment timestamp.
|
|
65
|
+
*/
|
|
66
|
+
declare public /*out*/ readonly lastDeployedAt: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Last deployed version.
|
|
69
|
+
*/
|
|
70
|
+
declare public /*out*/ readonly lastDeployedVersion: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Fleet display name.
|
|
73
|
+
*/
|
|
74
|
+
declare public readonly name: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Attached policy ID.
|
|
77
|
+
*/
|
|
78
|
+
declare public readonly policyId: pulumi.Output<string | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Attached policy name.
|
|
81
|
+
*/
|
|
82
|
+
declare public readonly policyName: pulumi.Output<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Provider hint (jamf, intune, workspace_one, custom, none).
|
|
85
|
+
*/
|
|
86
|
+
declare public readonly provider: pulumi.Output<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Fleet region.
|
|
89
|
+
*/
|
|
90
|
+
declare public readonly region: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Current rollout percentage.
|
|
93
|
+
*/
|
|
94
|
+
declare public readonly rolloutPct: pulumi.Output<number | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Rollout strategy (canary or staged).
|
|
97
|
+
*/
|
|
98
|
+
declare public readonly rolloutStrategy: pulumi.Output<string | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Fleet status (active, paused, deploying, error).
|
|
101
|
+
*/
|
|
102
|
+
declare public readonly status: pulumi.Output<string | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Tenant ID from provider configuration.
|
|
105
|
+
*/
|
|
106
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Last update timestamp.
|
|
109
|
+
*/
|
|
110
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Create a Fleet resource with the given unique name, arguments, and options.
|
|
114
|
+
*
|
|
115
|
+
* @param name The _unique_ name of the resource.
|
|
116
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
117
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
118
|
+
*/
|
|
119
|
+
constructor(name: string, args: FleetArgs, opts?: pulumi.CustomResourceOptions)
|
|
120
|
+
constructor(name: string, argsOrState?: FleetArgs | FleetState, opts?: pulumi.CustomResourceOptions) {
|
|
121
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
122
|
+
opts = opts || {};
|
|
123
|
+
if (opts.id) {
|
|
124
|
+
const state = argsOrState as FleetState | undefined;
|
|
125
|
+
resourceInputs["compliancePct"] = state?.compliancePct;
|
|
126
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
127
|
+
resourceInputs["driftPct"] = state?.driftPct;
|
|
128
|
+
resourceInputs["driftedEndpointCount"] = state?.driftedEndpointCount;
|
|
129
|
+
resourceInputs["endpointCount"] = state?.endpointCount;
|
|
130
|
+
resourceInputs["fleetCode"] = state?.fleetCode;
|
|
131
|
+
resourceInputs["fleetId"] = state?.fleetId;
|
|
132
|
+
resourceInputs["lastDeployedAt"] = state?.lastDeployedAt;
|
|
133
|
+
resourceInputs["lastDeployedVersion"] = state?.lastDeployedVersion;
|
|
134
|
+
resourceInputs["name"] = state?.name;
|
|
135
|
+
resourceInputs["policyId"] = state?.policyId;
|
|
136
|
+
resourceInputs["policyName"] = state?.policyName;
|
|
137
|
+
resourceInputs["provider"] = state?.provider;
|
|
138
|
+
resourceInputs["region"] = state?.region;
|
|
139
|
+
resourceInputs["rolloutPct"] = state?.rolloutPct;
|
|
140
|
+
resourceInputs["rolloutStrategy"] = state?.rolloutStrategy;
|
|
141
|
+
resourceInputs["status"] = state?.status;
|
|
142
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
143
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
144
|
+
} else {
|
|
145
|
+
const args = argsOrState as FleetArgs | undefined;
|
|
146
|
+
if (args?.name === undefined && !opts.urn) {
|
|
147
|
+
throw new Error("Missing required property 'name'");
|
|
148
|
+
}
|
|
149
|
+
resourceInputs["name"] = args?.name;
|
|
150
|
+
resourceInputs["policyId"] = args?.policyId;
|
|
151
|
+
resourceInputs["policyName"] = args?.policyName;
|
|
152
|
+
resourceInputs["provider"] = args?.provider;
|
|
153
|
+
resourceInputs["region"] = args?.region;
|
|
154
|
+
resourceInputs["rolloutPct"] = args?.rolloutPct;
|
|
155
|
+
resourceInputs["rolloutStrategy"] = args?.rolloutStrategy;
|
|
156
|
+
resourceInputs["status"] = args?.status;
|
|
157
|
+
resourceInputs["compliancePct"] = undefined /*out*/;
|
|
158
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
159
|
+
resourceInputs["driftPct"] = undefined /*out*/;
|
|
160
|
+
resourceInputs["driftedEndpointCount"] = undefined /*out*/;
|
|
161
|
+
resourceInputs["endpointCount"] = undefined /*out*/;
|
|
162
|
+
resourceInputs["fleetCode"] = undefined /*out*/;
|
|
163
|
+
resourceInputs["fleetId"] = undefined /*out*/;
|
|
164
|
+
resourceInputs["lastDeployedAt"] = undefined /*out*/;
|
|
165
|
+
resourceInputs["lastDeployedVersion"] = undefined /*out*/;
|
|
166
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
167
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
168
|
+
}
|
|
169
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
170
|
+
super(Fleet.__pulumiType, name, resourceInputs, opts);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Input properties used for looking up and filtering Fleet resources.
|
|
176
|
+
*/
|
|
177
|
+
export interface FleetState {
|
|
178
|
+
/**
|
|
179
|
+
* Compliance percentage.
|
|
180
|
+
*/
|
|
181
|
+
compliancePct?: pulumi.Input<number | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Creation timestamp.
|
|
184
|
+
*/
|
|
185
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* Percent drift detected.
|
|
188
|
+
*/
|
|
189
|
+
driftPct?: pulumi.Input<number | undefined>;
|
|
190
|
+
/**
|
|
191
|
+
* Drifted endpoint count.
|
|
192
|
+
*/
|
|
193
|
+
driftedEndpointCount?: pulumi.Input<number | undefined>;
|
|
194
|
+
/**
|
|
195
|
+
* Endpoint count in this fleet.
|
|
196
|
+
*/
|
|
197
|
+
endpointCount?: pulumi.Input<number | undefined>;
|
|
198
|
+
/**
|
|
199
|
+
* Fleet code.
|
|
200
|
+
*/
|
|
201
|
+
fleetCode?: pulumi.Input<string | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* Fleet identifier.
|
|
204
|
+
*/
|
|
205
|
+
fleetId?: pulumi.Input<string | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* Last deployment timestamp.
|
|
208
|
+
*/
|
|
209
|
+
lastDeployedAt?: pulumi.Input<string | undefined>;
|
|
210
|
+
/**
|
|
211
|
+
* Last deployed version.
|
|
212
|
+
*/
|
|
213
|
+
lastDeployedVersion?: pulumi.Input<string | undefined>;
|
|
214
|
+
/**
|
|
215
|
+
* Fleet display name.
|
|
216
|
+
*/
|
|
217
|
+
name?: pulumi.Input<string | undefined>;
|
|
218
|
+
/**
|
|
219
|
+
* Attached policy ID.
|
|
220
|
+
*/
|
|
221
|
+
policyId?: pulumi.Input<string | undefined>;
|
|
222
|
+
/**
|
|
223
|
+
* Attached policy name.
|
|
224
|
+
*/
|
|
225
|
+
policyName?: pulumi.Input<string | undefined>;
|
|
226
|
+
/**
|
|
227
|
+
* Provider hint (jamf, intune, workspace_one, custom, none).
|
|
228
|
+
*/
|
|
229
|
+
provider?: pulumi.Input<string | undefined>;
|
|
230
|
+
/**
|
|
231
|
+
* Fleet region.
|
|
232
|
+
*/
|
|
233
|
+
region?: pulumi.Input<string | undefined>;
|
|
234
|
+
/**
|
|
235
|
+
* Current rollout percentage.
|
|
236
|
+
*/
|
|
237
|
+
rolloutPct?: pulumi.Input<number | undefined>;
|
|
238
|
+
/**
|
|
239
|
+
* Rollout strategy (canary or staged).
|
|
240
|
+
*/
|
|
241
|
+
rolloutStrategy?: pulumi.Input<string | undefined>;
|
|
242
|
+
/**
|
|
243
|
+
* Fleet status (active, paused, deploying, error).
|
|
244
|
+
*/
|
|
245
|
+
status?: pulumi.Input<string | undefined>;
|
|
246
|
+
/**
|
|
247
|
+
* Tenant ID from provider configuration.
|
|
248
|
+
*/
|
|
249
|
+
tenantId?: pulumi.Input<string | undefined>;
|
|
250
|
+
/**
|
|
251
|
+
* Last update timestamp.
|
|
252
|
+
*/
|
|
253
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* The set of arguments for constructing a Fleet resource.
|
|
258
|
+
*/
|
|
259
|
+
export interface FleetArgs {
|
|
260
|
+
/**
|
|
261
|
+
* Fleet display name.
|
|
262
|
+
*/
|
|
263
|
+
name: pulumi.Input<string>;
|
|
264
|
+
/**
|
|
265
|
+
* Attached policy ID.
|
|
266
|
+
*/
|
|
267
|
+
policyId?: pulumi.Input<string | undefined>;
|
|
268
|
+
/**
|
|
269
|
+
* Attached policy name.
|
|
270
|
+
*/
|
|
271
|
+
policyName?: pulumi.Input<string | undefined>;
|
|
272
|
+
/**
|
|
273
|
+
* Provider hint (jamf, intune, workspace_one, custom, none).
|
|
274
|
+
*/
|
|
275
|
+
provider?: pulumi.Input<string | undefined>;
|
|
276
|
+
/**
|
|
277
|
+
* Fleet region.
|
|
278
|
+
*/
|
|
279
|
+
region?: pulumi.Input<string | undefined>;
|
|
280
|
+
/**
|
|
281
|
+
* Current rollout percentage.
|
|
282
|
+
*/
|
|
283
|
+
rolloutPct?: pulumi.Input<number | undefined>;
|
|
284
|
+
/**
|
|
285
|
+
* Rollout strategy (canary or staged).
|
|
286
|
+
*/
|
|
287
|
+
rolloutStrategy?: pulumi.Input<string | undefined>;
|
|
288
|
+
/**
|
|
289
|
+
* Fleet status (active, paused, deploying, error).
|
|
290
|
+
*/
|
|
291
|
+
status?: pulumi.Input<string | undefined>;
|
|
292
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 function getEndpointStats(opts?: pulumi.InvokeOptions): Promise<GetEndpointStatsResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:fleet/getEndpointStats:getEndpointStats", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getEndpointStats.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetEndpointStatsResult {
|
|
17
|
+
readonly atRisk: number;
|
|
18
|
+
/**
|
|
19
|
+
* The provider-assigned unique ID for this managed resource.
|
|
20
|
+
*/
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly latestVersion: string;
|
|
23
|
+
readonly managed: number;
|
|
24
|
+
readonly online: number;
|
|
25
|
+
readonly proxyOutdated: number;
|
|
26
|
+
readonly quarantined: number;
|
|
27
|
+
readonly stale: number;
|
|
28
|
+
readonly statsJson: string;
|
|
29
|
+
readonly total: number;
|
|
30
|
+
readonly unmanaged: number;
|
|
31
|
+
}
|
|
32
|
+
export function getEndpointStatsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEndpointStatsResult> {
|
|
33
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
34
|
+
return pulumi.runtime.invokeOutput("thoth:fleet/getEndpointStats:getEndpointStats", {
|
|
35
|
+
}, opts);
|
|
36
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 function getEndpoints(args?: GetEndpointsArgs, opts?: pulumi.InvokeOptions): Promise<GetEndpointsResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:fleet/getEndpoints:getEndpoints", {
|
|
11
|
+
"environment": args.environment,
|
|
12
|
+
"fleetId": args.fleetId,
|
|
13
|
+
}, opts);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A collection of arguments for invoking getEndpoints.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetEndpointsArgs {
|
|
20
|
+
environment?: string;
|
|
21
|
+
fleetId?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A collection of values returned by getEndpoints.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetEndpointsResult {
|
|
28
|
+
readonly dataJson: string;
|
|
29
|
+
readonly environment?: string;
|
|
30
|
+
readonly fleetId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly total: number;
|
|
36
|
+
}
|
|
37
|
+
export function getEndpointsOutput(args?: GetEndpointsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEndpointsResult> {
|
|
38
|
+
args = args || {};
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
40
|
+
return pulumi.runtime.invokeOutput("thoth:fleet/getEndpoints:getEndpoints", {
|
|
41
|
+
"environment": args.environment,
|
|
42
|
+
"fleetId": args.fleetId,
|
|
43
|
+
}, opts);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* A collection of arguments for invoking getEndpoints.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetEndpointsOutputArgs {
|
|
50
|
+
environment?: pulumi.Input<string | undefined>;
|
|
51
|
+
fleetId?: pulumi.Input<string | undefined>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 function getFleet(args: GetFleetArgs, opts?: pulumi.InvokeOptions): Promise<GetFleetResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:fleet/getFleet:getFleet", {
|
|
10
|
+
"fleetId": args.fleetId,
|
|
11
|
+
}, opts);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A collection of arguments for invoking getFleet.
|
|
16
|
+
*/
|
|
17
|
+
export interface GetFleetArgs {
|
|
18
|
+
fleetId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A collection of values returned by getFleet.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetFleetResult {
|
|
25
|
+
readonly endpointCount: number;
|
|
26
|
+
readonly fleetId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The provider-assigned unique ID for this managed resource.
|
|
29
|
+
*/
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly region: string;
|
|
33
|
+
readonly responseJson: string;
|
|
34
|
+
readonly status: string;
|
|
35
|
+
}
|
|
36
|
+
export function getFleetOutput(args: GetFleetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFleetResult> {
|
|
37
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
38
|
+
return pulumi.runtime.invokeOutput("thoth:fleet/getFleet:getFleet", {
|
|
39
|
+
"fleetId": args.fleetId,
|
|
40
|
+
}, opts);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A collection of arguments for invoking getFleet.
|
|
45
|
+
*/
|
|
46
|
+
export interface GetFleetOutputArgs {
|
|
47
|
+
fleetId: pulumi.Input<string>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 function getFleets(args?: GetFleetsArgs, opts?: pulumi.InvokeOptions): Promise<GetFleetsResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:fleet/getFleets:getFleets", {
|
|
11
|
+
"provider": args.provider,
|
|
12
|
+
"region": args.region,
|
|
13
|
+
"status": args.status,
|
|
14
|
+
}, opts);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getFleets.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetFleetsArgs {
|
|
21
|
+
provider?: string;
|
|
22
|
+
region?: string;
|
|
23
|
+
status?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getFleets.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetFleetsResult {
|
|
30
|
+
readonly dataJson: string;
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly provider?: string;
|
|
36
|
+
readonly region?: string;
|
|
37
|
+
readonly status?: string;
|
|
38
|
+
readonly total: number;
|
|
39
|
+
}
|
|
40
|
+
export function getFleetsOutput(args?: GetFleetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFleetsResult> {
|
|
41
|
+
args = args || {};
|
|
42
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
43
|
+
return pulumi.runtime.invokeOutput("thoth:fleet/getFleets:getFleets", {
|
|
44
|
+
"provider": args.provider,
|
|
45
|
+
"region": args.region,
|
|
46
|
+
"status": args.status,
|
|
47
|
+
}, opts);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A collection of arguments for invoking getFleets.
|
|
52
|
+
*/
|
|
53
|
+
export interface GetFleetsOutputArgs {
|
|
54
|
+
provider?: pulumi.Input<string | undefined>;
|
|
55
|
+
region?: pulumi.Input<string | undefined>;
|
|
56
|
+
status?: pulumi.Input<string | undefined>;
|
|
57
|
+
}
|
package/fleet/index.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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 members:
|
|
8
|
+
export { FleetArgs, FleetState } from "./fleet";
|
|
9
|
+
export type Fleet = import("./fleet").Fleet;
|
|
10
|
+
export const Fleet: typeof import("./fleet").Fleet = null as any;
|
|
11
|
+
utilities.lazyLoad(exports, ["Fleet"], () => require("./fleet"));
|
|
12
|
+
|
|
13
|
+
export { GetEndpointStatsResult } from "./getEndpointStats";
|
|
14
|
+
export const getEndpointStats: typeof import("./getEndpointStats").getEndpointStats = null as any;
|
|
15
|
+
export const getEndpointStatsOutput: typeof import("./getEndpointStats").getEndpointStatsOutput = null as any;
|
|
16
|
+
utilities.lazyLoad(exports, ["getEndpointStats","getEndpointStatsOutput"], () => require("./getEndpointStats"));
|
|
17
|
+
|
|
18
|
+
export { GetEndpointsArgs, GetEndpointsResult, GetEndpointsOutputArgs } from "./getEndpoints";
|
|
19
|
+
export const getEndpoints: typeof import("./getEndpoints").getEndpoints = null as any;
|
|
20
|
+
export const getEndpointsOutput: typeof import("./getEndpoints").getEndpointsOutput = null as any;
|
|
21
|
+
utilities.lazyLoad(exports, ["getEndpoints","getEndpointsOutput"], () => require("./getEndpoints"));
|
|
22
|
+
|
|
23
|
+
export { GetFleetArgs, GetFleetResult, GetFleetOutputArgs } from "./getFleet";
|
|
24
|
+
export const getFleet: typeof import("./getFleet").getFleet = null as any;
|
|
25
|
+
export const getFleetOutput: typeof import("./getFleet").getFleetOutput = null as any;
|
|
26
|
+
utilities.lazyLoad(exports, ["getFleet","getFleetOutput"], () => require("./getFleet"));
|
|
27
|
+
|
|
28
|
+
export { GetFleetsArgs, GetFleetsResult, GetFleetsOutputArgs } from "./getFleets";
|
|
29
|
+
export const getFleets: typeof import("./getFleets").getFleets = null as any;
|
|
30
|
+
export const getFleetsOutput: typeof import("./getFleets").getFleetsOutput = null as any;
|
|
31
|
+
utilities.lazyLoad(exports, ["getFleets","getFleetsOutput"], () => require("./getFleets"));
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
const _module = {
|
|
35
|
+
version: utilities.getVersion(),
|
|
36
|
+
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
37
|
+
switch (type) {
|
|
38
|
+
case "thoth:fleet/fleet:Fleet":
|
|
39
|
+
return new Fleet(name, <any>undefined, { urn })
|
|
40
|
+
default:
|
|
41
|
+
throw new Error(`unknown resource type ${type}`);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
pulumi.runtime.registerResourceModule("thoth", "fleet/fleet", _module)
|
|
@@ -0,0 +1,57 @@
|
|
|
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 function getApprovals(args?: GetApprovalsArgs, opts?: pulumi.InvokeOptions): Promise<GetApprovalsResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:governance/getApprovals:getApprovals", {
|
|
11
|
+
"page": args.page,
|
|
12
|
+
"perPage": args.perPage,
|
|
13
|
+
"status": args.status,
|
|
14
|
+
}, opts);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getApprovals.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetApprovalsArgs {
|
|
21
|
+
page?: number;
|
|
22
|
+
perPage?: number;
|
|
23
|
+
status?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getApprovals.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetApprovalsResult {
|
|
30
|
+
readonly dataJson: string;
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly page?: number;
|
|
36
|
+
readonly perPage?: number;
|
|
37
|
+
readonly status?: string;
|
|
38
|
+
readonly total: number;
|
|
39
|
+
}
|
|
40
|
+
export function getApprovalsOutput(args?: GetApprovalsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApprovalsResult> {
|
|
41
|
+
args = args || {};
|
|
42
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
43
|
+
return pulumi.runtime.invokeOutput("thoth:governance/getApprovals:getApprovals", {
|
|
44
|
+
"page": args.page,
|
|
45
|
+
"perPage": args.perPage,
|
|
46
|
+
"status": args.status,
|
|
47
|
+
}, opts);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A collection of arguments for invoking getApprovals.
|
|
52
|
+
*/
|
|
53
|
+
export interface GetApprovalsOutputArgs {
|
|
54
|
+
page?: pulumi.Input<number | undefined>;
|
|
55
|
+
perPage?: pulumi.Input<number | undefined>;
|
|
56
|
+
status?: pulumi.Input<string | undefined>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 function getCostReport(args?: GetCostReportArgs, opts?: pulumi.InvokeOptions): Promise<GetCostReportResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:governance/getCostReport:getCostReport", {
|
|
11
|
+
"days": args.days,
|
|
12
|
+
"rate": args.rate,
|
|
13
|
+
}, opts);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A collection of arguments for invoking getCostReport.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCostReportArgs {
|
|
20
|
+
days?: number;
|
|
21
|
+
rate?: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A collection of values returned by getCostReport.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetCostReportResult {
|
|
28
|
+
readonly days?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The provider-assigned unique ID for this managed resource.
|
|
31
|
+
*/
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly rate?: number;
|
|
34
|
+
readonly responseJson: string;
|
|
35
|
+
}
|
|
36
|
+
export function getCostReportOutput(args?: GetCostReportOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCostReportResult> {
|
|
37
|
+
args = args || {};
|
|
38
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
39
|
+
return pulumi.runtime.invokeOutput("thoth:governance/getCostReport:getCostReport", {
|
|
40
|
+
"days": args.days,
|
|
41
|
+
"rate": args.rate,
|
|
42
|
+
}, opts);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A collection of arguments for invoking getCostReport.
|
|
47
|
+
*/
|
|
48
|
+
export interface GetCostReportOutputArgs {
|
|
49
|
+
days?: pulumi.Input<number | undefined>;
|
|
50
|
+
rate?: pulumi.Input<number | undefined>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 function getDay7Report(args?: GetDay7ReportArgs, opts?: pulumi.InvokeOptions): Promise<GetDay7ReportResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:governance/getDay7Report:getDay7Report", {
|
|
11
|
+
"days": args.days,
|
|
12
|
+
}, opts);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getDay7Report.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetDay7ReportArgs {
|
|
19
|
+
days?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A collection of values returned by getDay7Report.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetDay7ReportResult {
|
|
26
|
+
readonly days?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The provider-assigned unique ID for this managed resource.
|
|
29
|
+
*/
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly responseJson: string;
|
|
32
|
+
}
|
|
33
|
+
export function getDay7ReportOutput(args?: GetDay7ReportOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDay7ReportResult> {
|
|
34
|
+
args = args || {};
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invokeOutput("thoth:governance/getDay7Report:getDay7Report", {
|
|
37
|
+
"days": args.days,
|
|
38
|
+
}, opts);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A collection of arguments for invoking getDay7Report.
|
|
43
|
+
*/
|
|
44
|
+
export interface GetDay7ReportOutputArgs {
|
|
45
|
+
days?: pulumi.Input<number | undefined>;
|
|
46
|
+
}
|