@atensec/pulumi-thoth 0.1.3 → 0.1.5
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/getCreditBank.ts +56 -0
- package/billing/getEstimate.ts +93 -0
- package/billing/getInvoices.ts +49 -0
- package/billing/getMonthlyCost.ts +38 -0
- package/billing/getPricing.ts +37 -0
- package/billing/getReport.ts +49 -0
- package/billing/getReports.ts +29 -0
- package/billing/index.ts +60 -0
- package/billing/overageCap.ts +174 -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/packAssignment.ts +56 -0
- package/governance/packAssignmentBulk.ts +56 -0
- 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 +37 -2
|
@@ -0,0 +1,72 @@
|
|
|
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 getApiKeyAuthorization(args: GetApiKeyAuthorizationArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeyAuthorizationResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:access/getApiKeyAuthorization:getApiKeyAuthorization", {
|
|
10
|
+
"apiKey": args.apiKey,
|
|
11
|
+
"keyId": args.keyId,
|
|
12
|
+
"permission": args.permission,
|
|
13
|
+
"resourceId": args.resourceId,
|
|
14
|
+
"resourceType": args.resourceType,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getApiKeyAuthorization.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetApiKeyAuthorizationArgs {
|
|
22
|
+
apiKey: string;
|
|
23
|
+
keyId: string;
|
|
24
|
+
permission: string;
|
|
25
|
+
resourceId?: string;
|
|
26
|
+
resourceType: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A collection of values returned by getApiKeyAuthorization.
|
|
31
|
+
*/
|
|
32
|
+
export interface GetApiKeyAuthorizationResult {
|
|
33
|
+
readonly apiKey: string;
|
|
34
|
+
readonly authorized: boolean;
|
|
35
|
+
readonly expired: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The provider-assigned unique ID for this managed resource.
|
|
38
|
+
*/
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly keyId: string;
|
|
41
|
+
readonly permission: string;
|
|
42
|
+
readonly permissionAllowed: boolean;
|
|
43
|
+
readonly resourceId?: string;
|
|
44
|
+
readonly resourceType: string;
|
|
45
|
+
readonly responseJson: string;
|
|
46
|
+
readonly scopeAllowed: boolean;
|
|
47
|
+
readonly scopeLevel: string;
|
|
48
|
+
readonly scopeTargetId: string;
|
|
49
|
+
readonly valid: boolean;
|
|
50
|
+
readonly validatedAt: string;
|
|
51
|
+
}
|
|
52
|
+
export function getApiKeyAuthorizationOutput(args: GetApiKeyAuthorizationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeyAuthorizationResult> {
|
|
53
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
54
|
+
return pulumi.runtime.invokeOutput("thoth:access/getApiKeyAuthorization:getApiKeyAuthorization", {
|
|
55
|
+
"apiKey": args.apiKey,
|
|
56
|
+
"keyId": args.keyId,
|
|
57
|
+
"permission": args.permission,
|
|
58
|
+
"resourceId": args.resourceId,
|
|
59
|
+
"resourceType": args.resourceType,
|
|
60
|
+
}, opts);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A collection of arguments for invoking getApiKeyAuthorization.
|
|
65
|
+
*/
|
|
66
|
+
export interface GetApiKeyAuthorizationOutputArgs {
|
|
67
|
+
apiKey: pulumi.Input<string>;
|
|
68
|
+
keyId: pulumi.Input<string>;
|
|
69
|
+
permission: pulumi.Input<string>;
|
|
70
|
+
resourceId?: pulumi.Input<string | undefined>;
|
|
71
|
+
resourceType: pulumi.Input<string>;
|
|
72
|
+
}
|
|
@@ -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 getApiKeys(args?: GetApiKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeysResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:access/getApiKeys:getApiKeys", {
|
|
11
|
+
"activeOnly": args.activeOnly,
|
|
12
|
+
"scopeLevel": args.scopeLevel,
|
|
13
|
+
"scopeTargetId": args.scopeTargetId,
|
|
14
|
+
}, opts);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getApiKeys.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetApiKeysArgs {
|
|
21
|
+
activeOnly?: boolean;
|
|
22
|
+
scopeLevel?: string;
|
|
23
|
+
scopeTargetId?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getApiKeys.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetApiKeysResult {
|
|
30
|
+
readonly activeOnly?: boolean;
|
|
31
|
+
readonly dataJson: string;
|
|
32
|
+
/**
|
|
33
|
+
* The provider-assigned unique ID for this managed resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly scopeLevel?: string;
|
|
37
|
+
readonly scopeTargetId?: string;
|
|
38
|
+
readonly total: number;
|
|
39
|
+
}
|
|
40
|
+
export function getApiKeysOutput(args?: GetApiKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeysResult> {
|
|
41
|
+
args = args || {};
|
|
42
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
43
|
+
return pulumi.runtime.invokeOutput("thoth:access/getApiKeys:getApiKeys", {
|
|
44
|
+
"activeOnly": args.activeOnly,
|
|
45
|
+
"scopeLevel": args.scopeLevel,
|
|
46
|
+
"scopeTargetId": args.scopeTargetId,
|
|
47
|
+
}, opts);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A collection of arguments for invoking getApiKeys.
|
|
52
|
+
*/
|
|
53
|
+
export interface GetApiKeysOutputArgs {
|
|
54
|
+
activeOnly?: pulumi.Input<boolean | undefined>;
|
|
55
|
+
scopeLevel?: pulumi.Input<string | undefined>;
|
|
56
|
+
scopeTargetId?: pulumi.Input<string | undefined>;
|
|
57
|
+
}
|
package/access/index.ts
CHANGED
|
@@ -5,26 +5,52 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
import * as utilities from "../utilities";
|
|
6
6
|
|
|
7
7
|
// Export members:
|
|
8
|
-
export {
|
|
9
|
-
export type
|
|
10
|
-
export const
|
|
11
|
-
utilities.lazyLoad(exports, ["
|
|
8
|
+
export { AgentApiKeyArgs, AgentApiKeyState } from "./agentApiKey";
|
|
9
|
+
export type AgentApiKey = import("./agentApiKey").AgentApiKey;
|
|
10
|
+
export const AgentApiKey: typeof import("./agentApiKey").AgentApiKey = null as any;
|
|
11
|
+
utilities.lazyLoad(exports, ["AgentApiKey"], () => require("./agentApiKey"));
|
|
12
|
+
|
|
13
|
+
export { EndpointApiKeyArgs, EndpointApiKeyState } from "./endpointApiKey";
|
|
14
|
+
export type EndpointApiKey = import("./endpointApiKey").EndpointApiKey;
|
|
15
|
+
export const EndpointApiKey: typeof import("./endpointApiKey").EndpointApiKey = null as any;
|
|
16
|
+
utilities.lazyLoad(exports, ["EndpointApiKey"], () => require("./endpointApiKey"));
|
|
17
|
+
|
|
18
|
+
export { FleetApiKeyArgs, FleetApiKeyState } from "./fleetApiKey";
|
|
19
|
+
export type FleetApiKey = import("./fleetApiKey").FleetApiKey;
|
|
20
|
+
export const FleetApiKey: typeof import("./fleetApiKey").FleetApiKey = null as any;
|
|
21
|
+
utilities.lazyLoad(exports, ["FleetApiKey"], () => require("./fleetApiKey"));
|
|
22
|
+
|
|
23
|
+
export { GetApiKeyAuthorizationArgs, GetApiKeyAuthorizationResult, GetApiKeyAuthorizationOutputArgs } from "./getApiKeyAuthorization";
|
|
24
|
+
export const getApiKeyAuthorization: typeof import("./getApiKeyAuthorization").getApiKeyAuthorization = null as any;
|
|
25
|
+
export const getApiKeyAuthorizationOutput: typeof import("./getApiKeyAuthorization").getApiKeyAuthorizationOutput = null as any;
|
|
26
|
+
utilities.lazyLoad(exports, ["getApiKeyAuthorization","getApiKeyAuthorizationOutput"], () => require("./getApiKeyAuthorization"));
|
|
12
27
|
|
|
13
28
|
export { GetApiKeyMetricsResult } from "./getApiKeyMetrics";
|
|
14
29
|
export const getApiKeyMetrics: typeof import("./getApiKeyMetrics").getApiKeyMetrics = null as any;
|
|
15
30
|
export const getApiKeyMetricsOutput: typeof import("./getApiKeyMetrics").getApiKeyMetricsOutput = null as any;
|
|
16
31
|
utilities.lazyLoad(exports, ["getApiKeyMetrics","getApiKeyMetricsOutput"], () => require("./getApiKeyMetrics"));
|
|
17
32
|
|
|
33
|
+
export { GetApiKeysArgs, GetApiKeysResult, GetApiKeysOutputArgs } from "./getApiKeys";
|
|
34
|
+
export const getApiKeys: typeof import("./getApiKeys").getApiKeys = null as any;
|
|
35
|
+
export const getApiKeysOutput: typeof import("./getApiKeys").getApiKeysOutput = null as any;
|
|
36
|
+
utilities.lazyLoad(exports, ["getApiKeys","getApiKeysOutput"], () => require("./getApiKeys"));
|
|
37
|
+
|
|
18
38
|
|
|
19
39
|
const _module = {
|
|
20
40
|
version: utilities.getVersion(),
|
|
21
41
|
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
22
42
|
switch (type) {
|
|
23
|
-
case "thoth:access/
|
|
24
|
-
return new
|
|
43
|
+
case "thoth:access/agentApiKey:AgentApiKey":
|
|
44
|
+
return new AgentApiKey(name, <any>undefined, { urn })
|
|
45
|
+
case "thoth:access/endpointApiKey:EndpointApiKey":
|
|
46
|
+
return new EndpointApiKey(name, <any>undefined, { urn })
|
|
47
|
+
case "thoth:access/fleetApiKey:FleetApiKey":
|
|
48
|
+
return new FleetApiKey(name, <any>undefined, { urn })
|
|
25
49
|
default:
|
|
26
50
|
throw new Error(`unknown resource type ${type}`);
|
|
27
51
|
}
|
|
28
52
|
},
|
|
29
53
|
};
|
|
30
|
-
pulumi.runtime.registerResourceModule("thoth", "access/
|
|
54
|
+
pulumi.runtime.registerResourceModule("thoth", "access/agentApiKey", _module)
|
|
55
|
+
pulumi.runtime.registerResourceModule("thoth", "access/endpointApiKey", _module)
|
|
56
|
+
pulumi.runtime.registerResourceModule("thoth", "access/fleetApiKey", _module)
|
|
@@ -0,0 +1,56 @@
|
|
|
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 getCreditBank(args?: GetCreditBankArgs, opts?: pulumi.InvokeOptions): Promise<GetCreditBankResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:billing/getCreditBank:getCreditBank", {
|
|
11
|
+
"asOf": args.asOf,
|
|
12
|
+
"averageMonthlyBurnCents": args.averageMonthlyBurnCents,
|
|
13
|
+
}, opts);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A collection of arguments for invoking getCreditBank.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCreditBankArgs {
|
|
20
|
+
asOf?: string;
|
|
21
|
+
averageMonthlyBurnCents?: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A collection of values returned by getCreditBank.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetCreditBankResult {
|
|
28
|
+
readonly activeWalletCount: number;
|
|
29
|
+
readonly activeWalletsJson: string;
|
|
30
|
+
readonly asOf?: string;
|
|
31
|
+
readonly averageMonthlyBurnCents?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The provider-assigned unique ID for this managed resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly lowBalanceAlert: boolean;
|
|
37
|
+
readonly lowBalanceThresholdCents: number;
|
|
38
|
+
readonly responseJson: string;
|
|
39
|
+
readonly totalActiveBalanceCents: number;
|
|
40
|
+
}
|
|
41
|
+
export function getCreditBankOutput(args?: GetCreditBankOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCreditBankResult> {
|
|
42
|
+
args = args || {};
|
|
43
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
44
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getCreditBank:getCreditBank", {
|
|
45
|
+
"asOf": args.asOf,
|
|
46
|
+
"averageMonthlyBurnCents": args.averageMonthlyBurnCents,
|
|
47
|
+
}, opts);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A collection of arguments for invoking getCreditBank.
|
|
52
|
+
*/
|
|
53
|
+
export interface GetCreditBankOutputArgs {
|
|
54
|
+
asOf?: pulumi.Input<string | undefined>;
|
|
55
|
+
averageMonthlyBurnCents?: pulumi.Input<number | undefined>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 getEstimate(args?: GetEstimateArgs, opts?: pulumi.InvokeOptions): Promise<GetEstimateResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:billing/getEstimate:getEstimate", {
|
|
11
|
+
"activeIdentitiesOverride": args.activeIdentitiesOverride,
|
|
12
|
+
"asOf": args.asOf,
|
|
13
|
+
"averageMonthlyBurnCents": args.averageMonthlyBurnCents,
|
|
14
|
+
"complianceUpliftPercent": args.complianceUpliftPercent,
|
|
15
|
+
"fixedDiscountPercent": args.fixedDiscountPercent,
|
|
16
|
+
"period": args.period,
|
|
17
|
+
"policyChecksOverride": args.policyChecksOverride,
|
|
18
|
+
}, opts);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getEstimate.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetEstimateArgs {
|
|
25
|
+
activeIdentitiesOverride?: number;
|
|
26
|
+
asOf?: string;
|
|
27
|
+
averageMonthlyBurnCents?: number;
|
|
28
|
+
complianceUpliftPercent?: number;
|
|
29
|
+
fixedDiscountPercent?: number;
|
|
30
|
+
period?: string;
|
|
31
|
+
policyChecksOverride?: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A collection of values returned by getEstimate.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetEstimateResult {
|
|
38
|
+
readonly activeIdentitiesOverride?: number;
|
|
39
|
+
readonly asOf?: string;
|
|
40
|
+
readonly averageMonthlyBurnCents?: number;
|
|
41
|
+
readonly complianceReceipt: string;
|
|
42
|
+
readonly complianceUpliftPercent?: number;
|
|
43
|
+
readonly creditBurnsJson: string;
|
|
44
|
+
readonly fixedDiscountPercent?: number;
|
|
45
|
+
readonly grossBillCents: number;
|
|
46
|
+
/**
|
|
47
|
+
* The provider-assigned unique ID for this managed resource.
|
|
48
|
+
*/
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly lineItemComplianceUpliftCents: number;
|
|
51
|
+
readonly lineItemCreditsAppliedCents: number;
|
|
52
|
+
readonly lineItemEnforcementOverageCents: number;
|
|
53
|
+
readonly lineItemFixedDiscountCents: number;
|
|
54
|
+
readonly lineItemIdentityOverageCents: number;
|
|
55
|
+
readonly lineItemPlatformFeeCents: number;
|
|
56
|
+
readonly lineItemStorageCapacityCents: number;
|
|
57
|
+
readonly lineItemStorageRetentionCents: number;
|
|
58
|
+
readonly lowBalanceAlert: boolean;
|
|
59
|
+
readonly netTotalCents: number;
|
|
60
|
+
readonly period?: string;
|
|
61
|
+
readonly periodEffective: string;
|
|
62
|
+
readonly policyChecksOverride?: number;
|
|
63
|
+
readonly pricingTier: string;
|
|
64
|
+
readonly responseJson: string;
|
|
65
|
+
readonly summaryJson: string;
|
|
66
|
+
readonly wormRetentionDays: number;
|
|
67
|
+
}
|
|
68
|
+
export function getEstimateOutput(args?: GetEstimateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEstimateResult> {
|
|
69
|
+
args = args || {};
|
|
70
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
71
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getEstimate:getEstimate", {
|
|
72
|
+
"activeIdentitiesOverride": args.activeIdentitiesOverride,
|
|
73
|
+
"asOf": args.asOf,
|
|
74
|
+
"averageMonthlyBurnCents": args.averageMonthlyBurnCents,
|
|
75
|
+
"complianceUpliftPercent": args.complianceUpliftPercent,
|
|
76
|
+
"fixedDiscountPercent": args.fixedDiscountPercent,
|
|
77
|
+
"period": args.period,
|
|
78
|
+
"policyChecksOverride": args.policyChecksOverride,
|
|
79
|
+
}, opts);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A collection of arguments for invoking getEstimate.
|
|
84
|
+
*/
|
|
85
|
+
export interface GetEstimateOutputArgs {
|
|
86
|
+
activeIdentitiesOverride?: pulumi.Input<number | undefined>;
|
|
87
|
+
asOf?: pulumi.Input<string | undefined>;
|
|
88
|
+
averageMonthlyBurnCents?: pulumi.Input<number | undefined>;
|
|
89
|
+
complianceUpliftPercent?: pulumi.Input<number | undefined>;
|
|
90
|
+
fixedDiscountPercent?: pulumi.Input<number | undefined>;
|
|
91
|
+
period?: pulumi.Input<string | undefined>;
|
|
92
|
+
policyChecksOverride?: pulumi.Input<number | undefined>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 getInvoices(args?: GetInvoicesArgs, opts?: pulumi.InvokeOptions): Promise<GetInvoicesResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:billing/getInvoices:getInvoices", {
|
|
11
|
+
"limit": args.limit,
|
|
12
|
+
}, opts);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getInvoices.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetInvoicesArgs {
|
|
19
|
+
limit?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A collection of values returned by getInvoices.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetInvoicesResult {
|
|
26
|
+
/**
|
|
27
|
+
* The provider-assigned unique ID for this managed resource.
|
|
28
|
+
*/
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly invoicesJson: string;
|
|
31
|
+
readonly limit?: number;
|
|
32
|
+
readonly responseJson: string;
|
|
33
|
+
readonly total: number;
|
|
34
|
+
readonly totalsJson: string;
|
|
35
|
+
}
|
|
36
|
+
export function getInvoicesOutput(args?: GetInvoicesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInvoicesResult> {
|
|
37
|
+
args = args || {};
|
|
38
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
39
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getInvoices:getInvoices", {
|
|
40
|
+
"limit": args.limit,
|
|
41
|
+
}, opts);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A collection of arguments for invoking getInvoices.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetInvoicesOutputArgs {
|
|
48
|
+
limit?: pulumi.Input<number | undefined>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 getMonthlyCost(opts?: pulumi.InvokeOptions): Promise<GetMonthlyCostResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getMonthlyCost:getMonthlyCost", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getMonthlyCost.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetMonthlyCostResult {
|
|
17
|
+
readonly actionCostUsd: number;
|
|
18
|
+
readonly creditDiscountUsd: number;
|
|
19
|
+
readonly governedIdentitiesObserved: number;
|
|
20
|
+
readonly governedIdentityCostUsd: number;
|
|
21
|
+
/**
|
|
22
|
+
* The provider-assigned unique ID for this managed resource.
|
|
23
|
+
*/
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly netCostUsd: number;
|
|
26
|
+
readonly policyChecksCostUsd: number;
|
|
27
|
+
readonly policyChecksTotal: number;
|
|
28
|
+
readonly responseJson: string;
|
|
29
|
+
readonly stripeInvoiceTotalUsd: number;
|
|
30
|
+
readonly stripeReconciliationUsd: number;
|
|
31
|
+
readonly tier: string;
|
|
32
|
+
readonly totalCostUsd: number;
|
|
33
|
+
}
|
|
34
|
+
export function getMonthlyCostOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMonthlyCostResult> {
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getMonthlyCost:getMonthlyCost", {
|
|
37
|
+
}, opts);
|
|
38
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 getPricing(opts?: pulumi.InvokeOptions): Promise<GetPricingResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getPricing:getPricing", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getPricing.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetPricingResult {
|
|
17
|
+
readonly activeTier: string;
|
|
18
|
+
readonly baseMonthlyPlatformFeeUsd: number;
|
|
19
|
+
readonly catalogVersion: string;
|
|
20
|
+
readonly creditDiscountPercent: number;
|
|
21
|
+
readonly governedIdentityUsdPerMonth: number;
|
|
22
|
+
/**
|
|
23
|
+
* The provider-assigned unique ID for this managed resource.
|
|
24
|
+
*/
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly includedGovernedIdentities: number;
|
|
27
|
+
readonly includedPolicyChecks: number;
|
|
28
|
+
readonly overageCapUsd: number;
|
|
29
|
+
readonly policyChecksUsdPerMillion: number;
|
|
30
|
+
readonly prepaidCreditUsd: number;
|
|
31
|
+
readonly responseJson: string;
|
|
32
|
+
}
|
|
33
|
+
export function getPricingOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPricingResult> {
|
|
34
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
35
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getPricing:getPricing", {
|
|
36
|
+
}, opts);
|
|
37
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 getReport(args: GetReportArgs, opts?: pulumi.InvokeOptions): Promise<GetReportResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getReport:getReport", {
|
|
10
|
+
"month": args.month,
|
|
11
|
+
"year": args.year,
|
|
12
|
+
}, opts);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getReport.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetReportArgs {
|
|
19
|
+
month: number;
|
|
20
|
+
year: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A collection of values returned by getReport.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetReportResult {
|
|
27
|
+
/**
|
|
28
|
+
* The provider-assigned unique ID for this managed resource.
|
|
29
|
+
*/
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly month: number;
|
|
32
|
+
readonly responseJson: string;
|
|
33
|
+
readonly year: number;
|
|
34
|
+
}
|
|
35
|
+
export function getReportOutput(args: GetReportOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReportResult> {
|
|
36
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
37
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getReport:getReport", {
|
|
38
|
+
"month": args.month,
|
|
39
|
+
"year": args.year,
|
|
40
|
+
}, opts);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A collection of arguments for invoking getReport.
|
|
45
|
+
*/
|
|
46
|
+
export interface GetReportOutputArgs {
|
|
47
|
+
month: pulumi.Input<number>;
|
|
48
|
+
year: pulumi.Input<number>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 getReports(opts?: pulumi.InvokeOptions): Promise<GetReportsResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getReports:getReports", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getReports.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetReportsResult {
|
|
17
|
+
/**
|
|
18
|
+
* The provider-assigned unique ID for this managed resource.
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly reportsJson: string;
|
|
22
|
+
readonly responseJson: string;
|
|
23
|
+
readonly total: number;
|
|
24
|
+
}
|
|
25
|
+
export function getReportsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReportsResult> {
|
|
26
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
27
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getReports:getReports", {
|
|
28
|
+
}, opts);
|
|
29
|
+
}
|
package/billing/index.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
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 { GetCreditBankArgs, GetCreditBankResult, GetCreditBankOutputArgs } from "./getCreditBank";
|
|
9
|
+
export const getCreditBank: typeof import("./getCreditBank").getCreditBank = null as any;
|
|
10
|
+
export const getCreditBankOutput: typeof import("./getCreditBank").getCreditBankOutput = null as any;
|
|
11
|
+
utilities.lazyLoad(exports, ["getCreditBank","getCreditBankOutput"], () => require("./getCreditBank"));
|
|
12
|
+
|
|
13
|
+
export { GetEstimateArgs, GetEstimateResult, GetEstimateOutputArgs } from "./getEstimate";
|
|
14
|
+
export const getEstimate: typeof import("./getEstimate").getEstimate = null as any;
|
|
15
|
+
export const getEstimateOutput: typeof import("./getEstimate").getEstimateOutput = null as any;
|
|
16
|
+
utilities.lazyLoad(exports, ["getEstimate","getEstimateOutput"], () => require("./getEstimate"));
|
|
17
|
+
|
|
18
|
+
export { GetInvoicesArgs, GetInvoicesResult, GetInvoicesOutputArgs } from "./getInvoices";
|
|
19
|
+
export const getInvoices: typeof import("./getInvoices").getInvoices = null as any;
|
|
20
|
+
export const getInvoicesOutput: typeof import("./getInvoices").getInvoicesOutput = null as any;
|
|
21
|
+
utilities.lazyLoad(exports, ["getInvoices","getInvoicesOutput"], () => require("./getInvoices"));
|
|
22
|
+
|
|
23
|
+
export { GetMonthlyCostResult } from "./getMonthlyCost";
|
|
24
|
+
export const getMonthlyCost: typeof import("./getMonthlyCost").getMonthlyCost = null as any;
|
|
25
|
+
export const getMonthlyCostOutput: typeof import("./getMonthlyCost").getMonthlyCostOutput = null as any;
|
|
26
|
+
utilities.lazyLoad(exports, ["getMonthlyCost","getMonthlyCostOutput"], () => require("./getMonthlyCost"));
|
|
27
|
+
|
|
28
|
+
export { GetPricingResult } from "./getPricing";
|
|
29
|
+
export const getPricing: typeof import("./getPricing").getPricing = null as any;
|
|
30
|
+
export const getPricingOutput: typeof import("./getPricing").getPricingOutput = null as any;
|
|
31
|
+
utilities.lazyLoad(exports, ["getPricing","getPricingOutput"], () => require("./getPricing"));
|
|
32
|
+
|
|
33
|
+
export { GetReportArgs, GetReportResult, GetReportOutputArgs } from "./getReport";
|
|
34
|
+
export const getReport: typeof import("./getReport").getReport = null as any;
|
|
35
|
+
export const getReportOutput: typeof import("./getReport").getReportOutput = null as any;
|
|
36
|
+
utilities.lazyLoad(exports, ["getReport","getReportOutput"], () => require("./getReport"));
|
|
37
|
+
|
|
38
|
+
export { GetReportsResult } from "./getReports";
|
|
39
|
+
export const getReports: typeof import("./getReports").getReports = null as any;
|
|
40
|
+
export const getReportsOutput: typeof import("./getReports").getReportsOutput = null as any;
|
|
41
|
+
utilities.lazyLoad(exports, ["getReports","getReportsOutput"], () => require("./getReports"));
|
|
42
|
+
|
|
43
|
+
export { OverageCapArgs, OverageCapState } from "./overageCap";
|
|
44
|
+
export type OverageCap = import("./overageCap").OverageCap;
|
|
45
|
+
export const OverageCap: typeof import("./overageCap").OverageCap = null as any;
|
|
46
|
+
utilities.lazyLoad(exports, ["OverageCap"], () => require("./overageCap"));
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
const _module = {
|
|
50
|
+
version: utilities.getVersion(),
|
|
51
|
+
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
52
|
+
switch (type) {
|
|
53
|
+
case "thoth:billing/overageCap:OverageCap":
|
|
54
|
+
return new OverageCap(name, <any>undefined, { urn })
|
|
55
|
+
default:
|
|
56
|
+
throw new Error(`unknown resource type ${type}`);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
pulumi.runtime.registerResourceModule("thoth", "billing/overageCap", _module)
|