@atensec/pulumi-thoth 0.1.4 → 0.1.6
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/billing/getCreditBank.ts +56 -0
- package/billing/getEstimate.ts +93 -0
- package/billing/getMonthlyCost.ts +11 -0
- package/billing/getPricing.ts +10 -0
- package/billing/index.ts +29 -0
- package/billing/overageCap.ts +174 -0
- package/governance/getEffectivePolicyBundles.ts +52 -0
- package/governance/getPackRuleVersions.ts +46 -0
- package/governance/getPackRules.ts +49 -0
- package/governance/getPolicyBundles.ts +62 -0
- package/governance/getTenantSettings.ts +1 -0
- package/governance/governanceSettings.ts +14 -0
- package/governance/index.ts +28 -0
- package/governance/packAssignment.ts +56 -0
- package/governance/packAssignmentBulk.ts +56 -0
- package/governance/policyBundle.ts +299 -0
- package/package.json +1 -1
- package/tsconfig.json +8 -0
|
@@ -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
|
+
}
|
|
@@ -14,11 +14,22 @@ export function getMonthlyCost(opts?: pulumi.InvokeOptions): Promise<GetMonthlyC
|
|
|
14
14
|
* A collection of values returned by getMonthlyCost.
|
|
15
15
|
*/
|
|
16
16
|
export interface GetMonthlyCostResult {
|
|
17
|
+
readonly actionCostUsd: number;
|
|
18
|
+
readonly creditDiscountUsd: number;
|
|
19
|
+
readonly governedIdentitiesObserved: number;
|
|
20
|
+
readonly governedIdentityCostUsd: number;
|
|
17
21
|
/**
|
|
18
22
|
* The provider-assigned unique ID for this managed resource.
|
|
19
23
|
*/
|
|
20
24
|
readonly id: string;
|
|
25
|
+
readonly netCostUsd: number;
|
|
26
|
+
readonly policyChecksCostUsd: number;
|
|
27
|
+
readonly policyChecksTotal: number;
|
|
21
28
|
readonly responseJson: string;
|
|
29
|
+
readonly stripeInvoiceTotalUsd: number;
|
|
30
|
+
readonly stripeReconciliationUsd: number;
|
|
31
|
+
readonly tier: string;
|
|
32
|
+
readonly totalCostUsd: number;
|
|
22
33
|
}
|
|
23
34
|
export function getMonthlyCostOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMonthlyCostResult> {
|
|
24
35
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
package/billing/getPricing.ts
CHANGED
|
@@ -14,10 +14,20 @@ export function getPricing(opts?: pulumi.InvokeOptions): Promise<GetPricingResul
|
|
|
14
14
|
* A collection of values returned by getPricing.
|
|
15
15
|
*/
|
|
16
16
|
export interface GetPricingResult {
|
|
17
|
+
readonly activeTier: string;
|
|
18
|
+
readonly baseMonthlyPlatformFeeUsd: number;
|
|
19
|
+
readonly catalogVersion: string;
|
|
20
|
+
readonly creditDiscountPercent: number;
|
|
21
|
+
readonly governedIdentityUsdPerMonth: number;
|
|
17
22
|
/**
|
|
18
23
|
* The provider-assigned unique ID for this managed resource.
|
|
19
24
|
*/
|
|
20
25
|
readonly id: string;
|
|
26
|
+
readonly includedGovernedIdentities: number;
|
|
27
|
+
readonly includedPolicyChecks: number;
|
|
28
|
+
readonly overageCapUsd: number;
|
|
29
|
+
readonly policyChecksUsdPerMillion: number;
|
|
30
|
+
readonly prepaidCreditUsd: number;
|
|
21
31
|
readonly responseJson: string;
|
|
22
32
|
}
|
|
23
33
|
export function getPricingOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPricingResult> {
|
package/billing/index.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
2
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
3
|
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
4
5
|
import * as utilities from "../utilities";
|
|
5
6
|
|
|
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
|
+
|
|
7
18
|
export { GetInvoicesArgs, GetInvoicesResult, GetInvoicesOutputArgs } from "./getInvoices";
|
|
8
19
|
export const getInvoices: typeof import("./getInvoices").getInvoices = null as any;
|
|
9
20
|
export const getInvoicesOutput: typeof import("./getInvoices").getInvoicesOutput = null as any;
|
|
@@ -29,3 +40,21 @@ export const getReports: typeof import("./getReports").getReports = null as any;
|
|
|
29
40
|
export const getReportsOutput: typeof import("./getReports").getReportsOutput = null as any;
|
|
30
41
|
utilities.lazyLoad(exports, ["getReports","getReportsOutput"], () => require("./getReports"));
|
|
31
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)
|
|
@@ -0,0 +1,174 @@
|
|
|
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 OverageCap extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing OverageCap 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?: OverageCapState, opts?: pulumi.CustomResourceOptions): OverageCap {
|
|
18
|
+
return new OverageCap(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'thoth:billing/overageCap:OverageCap';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of OverageCap. 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 OverageCap {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === OverageCap.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Effective active pricing tier.
|
|
37
|
+
*/
|
|
38
|
+
declare public /*out*/ readonly activeTier: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Base monthly platform fee in USD for the active tier.
|
|
41
|
+
*/
|
|
42
|
+
declare public /*out*/ readonly baseMonthlyPlatformFeeUsd: pulumi.Output<number>;
|
|
43
|
+
/**
|
|
44
|
+
* Per-governed-identity overage rate.
|
|
45
|
+
*/
|
|
46
|
+
declare public /*out*/ readonly governedIdentityUsdPerMonth: pulumi.Output<number>;
|
|
47
|
+
/**
|
|
48
|
+
* Included governed identities before overage.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly includedGovernedIdentities: pulumi.Output<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Included policy checks before overage.
|
|
53
|
+
*/
|
|
54
|
+
declare public /*out*/ readonly includedPolicyChecks: pulumi.Output<number>;
|
|
55
|
+
/**
|
|
56
|
+
* Monthly variable overage cap in USD.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly overageCapUsd: pulumi.Output<number>;
|
|
59
|
+
/**
|
|
60
|
+
* Per-million policy checks overage rate.
|
|
61
|
+
*/
|
|
62
|
+
declare public /*out*/ readonly policyChecksUsdPerMillion: pulumi.Output<number>;
|
|
63
|
+
/**
|
|
64
|
+
* Full billing pricing profile response payload as JSON.
|
|
65
|
+
*/
|
|
66
|
+
declare public /*out*/ readonly responseJson: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Tenant ID resolved from provider configuration.
|
|
69
|
+
*/
|
|
70
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Timestamp when the overage cap was last applied via provider.
|
|
73
|
+
*/
|
|
74
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Create a OverageCap resource with the given unique name, arguments, and options.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resource.
|
|
80
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
81
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
82
|
+
*/
|
|
83
|
+
constructor(name: string, args: OverageCapArgs, opts?: pulumi.CustomResourceOptions)
|
|
84
|
+
constructor(name: string, argsOrState?: OverageCapArgs | OverageCapState, opts?: pulumi.CustomResourceOptions) {
|
|
85
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
86
|
+
opts = opts || {};
|
|
87
|
+
if (opts.id) {
|
|
88
|
+
const state = argsOrState as OverageCapState | undefined;
|
|
89
|
+
resourceInputs["activeTier"] = state?.activeTier;
|
|
90
|
+
resourceInputs["baseMonthlyPlatformFeeUsd"] = state?.baseMonthlyPlatformFeeUsd;
|
|
91
|
+
resourceInputs["governedIdentityUsdPerMonth"] = state?.governedIdentityUsdPerMonth;
|
|
92
|
+
resourceInputs["includedGovernedIdentities"] = state?.includedGovernedIdentities;
|
|
93
|
+
resourceInputs["includedPolicyChecks"] = state?.includedPolicyChecks;
|
|
94
|
+
resourceInputs["overageCapUsd"] = state?.overageCapUsd;
|
|
95
|
+
resourceInputs["policyChecksUsdPerMillion"] = state?.policyChecksUsdPerMillion;
|
|
96
|
+
resourceInputs["responseJson"] = state?.responseJson;
|
|
97
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
98
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
99
|
+
} else {
|
|
100
|
+
const args = argsOrState as OverageCapArgs | undefined;
|
|
101
|
+
if (args?.overageCapUsd === undefined && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'overageCapUsd'");
|
|
103
|
+
}
|
|
104
|
+
resourceInputs["overageCapUsd"] = args?.overageCapUsd;
|
|
105
|
+
resourceInputs["activeTier"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["baseMonthlyPlatformFeeUsd"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["governedIdentityUsdPerMonth"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["includedGovernedIdentities"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["includedPolicyChecks"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["policyChecksUsdPerMillion"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["responseJson"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
114
|
+
}
|
|
115
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
116
|
+
super(OverageCap.__pulumiType, name, resourceInputs, opts);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Input properties used for looking up and filtering OverageCap resources.
|
|
122
|
+
*/
|
|
123
|
+
export interface OverageCapState {
|
|
124
|
+
/**
|
|
125
|
+
* Effective active pricing tier.
|
|
126
|
+
*/
|
|
127
|
+
activeTier?: pulumi.Input<string | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Base monthly platform fee in USD for the active tier.
|
|
130
|
+
*/
|
|
131
|
+
baseMonthlyPlatformFeeUsd?: pulumi.Input<number | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* Per-governed-identity overage rate.
|
|
134
|
+
*/
|
|
135
|
+
governedIdentityUsdPerMonth?: pulumi.Input<number | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* Included governed identities before overage.
|
|
138
|
+
*/
|
|
139
|
+
includedGovernedIdentities?: pulumi.Input<number | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Included policy checks before overage.
|
|
142
|
+
*/
|
|
143
|
+
includedPolicyChecks?: pulumi.Input<number | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Monthly variable overage cap in USD.
|
|
146
|
+
*/
|
|
147
|
+
overageCapUsd?: pulumi.Input<number | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* Per-million policy checks overage rate.
|
|
150
|
+
*/
|
|
151
|
+
policyChecksUsdPerMillion?: pulumi.Input<number | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* Full billing pricing profile response payload as JSON.
|
|
154
|
+
*/
|
|
155
|
+
responseJson?: pulumi.Input<string | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* Tenant ID resolved from provider configuration.
|
|
158
|
+
*/
|
|
159
|
+
tenantId?: pulumi.Input<string | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* Timestamp when the overage cap was last applied via provider.
|
|
162
|
+
*/
|
|
163
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The set of arguments for constructing a OverageCap resource.
|
|
168
|
+
*/
|
|
169
|
+
export interface OverageCapArgs {
|
|
170
|
+
/**
|
|
171
|
+
* Monthly variable overage cap in USD.
|
|
172
|
+
*/
|
|
173
|
+
overageCapUsd: pulumi.Input<number>;
|
|
174
|
+
}
|
|
@@ -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 getEffectivePolicyBundles(args?: GetEffectivePolicyBundlesArgs, opts?: pulumi.InvokeOptions): Promise<GetEffectivePolicyBundlesResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:governance/getEffectivePolicyBundles:getEffectivePolicyBundles", {
|
|
11
|
+
"agentId": args.agentId,
|
|
12
|
+
"framework": args.framework,
|
|
13
|
+
}, opts);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A collection of arguments for invoking getEffectivePolicyBundles.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetEffectivePolicyBundlesArgs {
|
|
20
|
+
agentId?: string;
|
|
21
|
+
framework?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A collection of values returned by getEffectivePolicyBundles.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetEffectivePolicyBundlesResult {
|
|
28
|
+
readonly agentId?: string;
|
|
29
|
+
readonly dataJson: string;
|
|
30
|
+
readonly framework?: 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 getEffectivePolicyBundlesOutput(args?: GetEffectivePolicyBundlesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEffectivePolicyBundlesResult> {
|
|
38
|
+
args = args || {};
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
40
|
+
return pulumi.runtime.invokeOutput("thoth:governance/getEffectivePolicyBundles:getEffectivePolicyBundles", {
|
|
41
|
+
"agentId": args.agentId,
|
|
42
|
+
"framework": args.framework,
|
|
43
|
+
}, opts);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* A collection of arguments for invoking getEffectivePolicyBundles.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetEffectivePolicyBundlesOutputArgs {
|
|
50
|
+
agentId?: pulumi.Input<string | undefined>;
|
|
51
|
+
framework?: pulumi.Input<string | undefined>;
|
|
52
|
+
}
|
|
@@ -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 getPackRuleVersions(args: GetPackRuleVersionsArgs, opts?: pulumi.InvokeOptions): Promise<GetPackRuleVersionsResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:governance/getPackRuleVersions:getPackRuleVersions", {
|
|
10
|
+
"packId": args.packId,
|
|
11
|
+
}, opts);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A collection of arguments for invoking getPackRuleVersions.
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPackRuleVersionsArgs {
|
|
18
|
+
packId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A collection of values returned by getPackRuleVersions.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetPackRuleVersionsResult {
|
|
25
|
+
/**
|
|
26
|
+
* The provider-assigned unique ID for this managed resource.
|
|
27
|
+
*/
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly packId: string;
|
|
30
|
+
readonly responseJson: string;
|
|
31
|
+
readonly total: number;
|
|
32
|
+
readonly versionsJson: string;
|
|
33
|
+
}
|
|
34
|
+
export function getPackRuleVersionsOutput(args: GetPackRuleVersionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPackRuleVersionsResult> {
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invokeOutput("thoth:governance/getPackRuleVersions:getPackRuleVersions", {
|
|
37
|
+
"packId": args.packId,
|
|
38
|
+
}, opts);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A collection of arguments for invoking getPackRuleVersions.
|
|
43
|
+
*/
|
|
44
|
+
export interface GetPackRuleVersionsOutputArgs {
|
|
45
|
+
packId: pulumi.Input<string>;
|
|
46
|
+
}
|
|
@@ -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 getPackRules(args: GetPackRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetPackRulesResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:governance/getPackRules:getPackRules", {
|
|
10
|
+
"packId": args.packId,
|
|
11
|
+
}, opts);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A collection of arguments for invoking getPackRules.
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPackRulesArgs {
|
|
18
|
+
packId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A collection of values returned by getPackRules.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetPackRulesResult {
|
|
25
|
+
readonly basePackVersion: string;
|
|
26
|
+
readonly currentVersionJson: string;
|
|
27
|
+
readonly displayName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The provider-assigned unique ID for this managed resource.
|
|
30
|
+
*/
|
|
31
|
+
readonly id: string;
|
|
32
|
+
readonly packId: string;
|
|
33
|
+
readonly regulation: string;
|
|
34
|
+
readonly responseJson: string;
|
|
35
|
+
readonly totalVersions: number;
|
|
36
|
+
}
|
|
37
|
+
export function getPackRulesOutput(args: GetPackRulesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPackRulesResult> {
|
|
38
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
39
|
+
return pulumi.runtime.invokeOutput("thoth:governance/getPackRules:getPackRules", {
|
|
40
|
+
"packId": args.packId,
|
|
41
|
+
}, opts);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A collection of arguments for invoking getPackRules.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetPackRulesOutputArgs {
|
|
48
|
+
packId: pulumi.Input<string>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 getPolicyBundles(args?: GetPolicyBundlesArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyBundlesResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:governance/getPolicyBundles:getPolicyBundles", {
|
|
11
|
+
"assignment": args.assignment,
|
|
12
|
+
"enforcementMode": args.enforcementMode,
|
|
13
|
+
"framework": args.framework,
|
|
14
|
+
"status": args.status,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getPolicyBundles.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPolicyBundlesArgs {
|
|
22
|
+
assignment?: string;
|
|
23
|
+
enforcementMode?: string;
|
|
24
|
+
framework?: string;
|
|
25
|
+
status?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* A collection of values returned by getPolicyBundles.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetPolicyBundlesResult {
|
|
32
|
+
readonly assignment?: string;
|
|
33
|
+
readonly dataJson: string;
|
|
34
|
+
readonly enforcementMode?: string;
|
|
35
|
+
readonly framework?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The provider-assigned unique ID for this managed resource.
|
|
38
|
+
*/
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly status?: string;
|
|
41
|
+
readonly total: number;
|
|
42
|
+
}
|
|
43
|
+
export function getPolicyBundlesOutput(args?: GetPolicyBundlesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyBundlesResult> {
|
|
44
|
+
args = args || {};
|
|
45
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
46
|
+
return pulumi.runtime.invokeOutput("thoth:governance/getPolicyBundles:getPolicyBundles", {
|
|
47
|
+
"assignment": args.assignment,
|
|
48
|
+
"enforcementMode": args.enforcementMode,
|
|
49
|
+
"framework": args.framework,
|
|
50
|
+
"status": args.status,
|
|
51
|
+
}, opts);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A collection of arguments for invoking getPolicyBundles.
|
|
56
|
+
*/
|
|
57
|
+
export interface GetPolicyBundlesOutputArgs {
|
|
58
|
+
assignment?: pulumi.Input<string | undefined>;
|
|
59
|
+
enforcementMode?: pulumi.Input<string | undefined>;
|
|
60
|
+
framework?: pulumi.Input<string | undefined>;
|
|
61
|
+
status?: pulumi.Input<string | undefined>;
|
|
62
|
+
}
|
|
@@ -19,6 +19,7 @@ export interface GetTenantSettingsResult {
|
|
|
19
19
|
* The provider-assigned unique ID for this managed resource.
|
|
20
20
|
*/
|
|
21
21
|
readonly id: string;
|
|
22
|
+
readonly regulatoryRegimes: string[];
|
|
22
23
|
readonly settingsJson: string;
|
|
23
24
|
readonly tenantId: string;
|
|
24
25
|
readonly toolRiskOverrides: {[key: string]: string};
|