@formalco/pulumi 1.0.0-alpha.1754615478
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/LICENSE +373 -0
- package/README.md +59 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +2 -0
- package/config/vars.js +19 -0
- package/config/vars.js.map +1 -0
- package/connector.d.ts +83 -0
- package/connector.js +60 -0
- package/connector.js.map +1 -0
- package/connectorConfiguration.d.ts +75 -0
- package/connectorConfiguration.js +59 -0
- package/connectorConfiguration.js.map +1 -0
- package/connectorHostname.d.ts +121 -0
- package/connectorHostname.js +70 -0
- package/connectorHostname.js.map +1 -0
- package/connectorListener.d.ts +75 -0
- package/connectorListener.js +59 -0
- package/connectorListener.js.map +1 -0
- package/connectorListenerLink.d.ts +75 -0
- package/connectorListenerLink.js +62 -0
- package/connectorListenerLink.js.map +1 -0
- package/connectorListenerRule.d.ts +87 -0
- package/connectorListenerRule.js +67 -0
- package/connectorListenerRule.js.map +1 -0
- package/dataDiscovery.d.ts +107 -0
- package/dataDiscovery.js +74 -0
- package/dataDiscovery.js.map +1 -0
- package/dataDomain.d.ts +117 -0
- package/dataDomain.js +73 -0
- package/dataDomain.js.map +1 -0
- package/dataLabel.d.ts +75 -0
- package/dataLabel.js +62 -0
- package/dataLabel.js.map +1 -0
- package/encryptionKey.d.ts +103 -0
- package/encryptionKey.js +74 -0
- package/encryptionKey.js.map +1 -0
- package/getGroup.d.ts +48 -0
- package/getGroup.js +28 -0
- package/getGroup.js.map +1 -0
- package/getResource.d.ts +68 -0
- package/getResource.js +28 -0
- package/getResource.js.map +1 -0
- package/group.d.ts +75 -0
- package/group.js +59 -0
- package/group.js.map +1 -0
- package/groupUserLink.d.ts +75 -0
- package/groupUserLink.js +62 -0
- package/groupUserLink.js.map +1 -0
- package/index.d.ts +118 -0
- package/index.js +233 -0
- package/index.js.map +1 -0
- package/integrationBi.d.ts +77 -0
- package/integrationBi.js +59 -0
- package/integrationBi.js.map +1 -0
- package/integrationCloud.d.ts +183 -0
- package/integrationCloud.js +83 -0
- package/integrationCloud.js.map +1 -0
- package/integrationDataCatalog.d.ts +89 -0
- package/integrationDataCatalog.js +64 -0
- package/integrationDataCatalog.js.map +1 -0
- package/integrationLog.d.ts +89 -0
- package/integrationLog.js +58 -0
- package/integrationLog.js.map +1 -0
- package/integrationMdm.d.ts +65 -0
- package/integrationMdm.js +54 -0
- package/integrationMdm.js.map +1 -0
- package/integrationMfa.d.ts +77 -0
- package/integrationMfa.js +56 -0
- package/integrationMfa.js.map +1 -0
- package/inventoryObjectDataLabelLink.d.ts +87 -0
- package/inventoryObjectDataLabelLink.js +70 -0
- package/inventoryObjectDataLabelLink.js.map +1 -0
- package/logConfiguration.d.ts +129 -0
- package/logConfiguration.js +78 -0
- package/logConfiguration.js.map +1 -0
- package/nativeUser.d.ts +99 -0
- package/nativeUser.js +71 -0
- package/nativeUser.js.map +1 -0
- package/nativeUserLink.d.ts +95 -0
- package/nativeUserLink.js +69 -0
- package/nativeUserLink.js.map +1 -0
- package/package.json +29 -0
- package/permission.d.ts +99 -0
- package/permission.js +69 -0
- package/permission.js.map +1 -0
- package/policy.d.ts +139 -0
- package/policy.js +83 -0
- package/policy.js.map +1 -0
- package/policyDataLoader.d.ts +151 -0
- package/policyDataLoader.js +88 -0
- package/policyDataLoader.js.map +1 -0
- package/provider.d.ts +44 -0
- package/provider.js +54 -0
- package/provider.js.map +1 -0
- package/resource.d.ts +149 -0
- package/resource.js +77 -0
- package/resource.js.map +1 -0
- package/resourceClassifierConfiguration.d.ts +79 -0
- package/resourceClassifierConfiguration.js +64 -0
- package/resourceClassifierConfiguration.js.map +1 -0
- package/resourceHealthCheck.d.ts +75 -0
- package/resourceHealthCheck.js +62 -0
- package/resourceHealthCheck.js.map +1 -0
- package/resourceHostname.d.ts +87 -0
- package/resourceHostname.js +64 -0
- package/resourceHostname.js.map +1 -0
- package/resourceTlsConfiguration.d.ts +87 -0
- package/resourceTlsConfiguration.js +64 -0
- package/resourceTlsConfiguration.js.map +1 -0
- package/satellite.d.ts +91 -0
- package/satellite.js +62 -0
- package/satellite.js.map +1 -0
- package/sidecar.d.ts +123 -0
- package/sidecar.js +74 -0
- package/sidecar.js.map +1 -0
- package/sidecarResourceLink.d.ts +87 -0
- package/sidecarResourceLink.js +67 -0
- package/sidecarResourceLink.js.map +1 -0
- package/space.d.ts +83 -0
- package/space.js +58 -0
- package/space.js.map +1 -0
- package/tracker.d.ts +103 -0
- package/tracker.js +68 -0
- package/tracker.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +196 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +195 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +151 -0
- package/user.js +75 -0
- package/user.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +102 -0
- package/utilities.js.map +1 -0
package/policy.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creating a Policy in Formal.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Policy extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Policy resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param state Any extra arguments used during the lookup.
|
|
13
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
+
*/
|
|
15
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PolicyState, opts?: pulumi.CustomResourceOptions): Policy;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the given object is an instance of Policy. This is designed to work even
|
|
18
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
19
|
+
*/
|
|
20
|
+
static isInstance(obj: any): obj is Policy;
|
|
21
|
+
/**
|
|
22
|
+
* When the policy was created.
|
|
23
|
+
*/
|
|
24
|
+
readonly createdAt: pulumi.Output<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Policy Description.
|
|
27
|
+
*/
|
|
28
|
+
readonly description: pulumi.Output<string>;
|
|
29
|
+
/**
|
|
30
|
+
* The module describing how the policy works. Create one in the Formal Console.
|
|
31
|
+
*/
|
|
32
|
+
readonly module: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Policy Name
|
|
35
|
+
*/
|
|
36
|
+
readonly name: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Notification settings for this policy.
|
|
39
|
+
*/
|
|
40
|
+
readonly notification: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Owner of this policy: it can be either a group name or a user email.
|
|
43
|
+
*/
|
|
44
|
+
readonly owner: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the current status of the policy. It can be one of the following: 'draft', 'dry-run', or 'active'.
|
|
47
|
+
*/
|
|
48
|
+
readonly status: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* If set to true, this Policy cannot be deleted.
|
|
51
|
+
*/
|
|
52
|
+
readonly terminationProtection: pulumi.Output<boolean | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Last update time.
|
|
55
|
+
*/
|
|
56
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a Policy resource with the given unique name, arguments, and options.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resource.
|
|
61
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
62
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
63
|
+
*/
|
|
64
|
+
constructor(name: string, args: PolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Input properties used for looking up and filtering Policy resources.
|
|
68
|
+
*/
|
|
69
|
+
export interface PolicyState {
|
|
70
|
+
/**
|
|
71
|
+
* When the policy was created.
|
|
72
|
+
*/
|
|
73
|
+
createdAt?: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Policy Description.
|
|
76
|
+
*/
|
|
77
|
+
description?: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The module describing how the policy works. Create one in the Formal Console.
|
|
80
|
+
*/
|
|
81
|
+
module?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Policy Name
|
|
84
|
+
*/
|
|
85
|
+
name?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Notification settings for this policy.
|
|
88
|
+
*/
|
|
89
|
+
notification?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Owner of this policy: it can be either a group name or a user email.
|
|
92
|
+
*/
|
|
93
|
+
owner?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Defines the current status of the policy. It can be one of the following: 'draft', 'dry-run', or 'active'.
|
|
96
|
+
*/
|
|
97
|
+
status?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* If set to true, this Policy cannot be deleted.
|
|
100
|
+
*/
|
|
101
|
+
terminationProtection?: pulumi.Input<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* Last update time.
|
|
104
|
+
*/
|
|
105
|
+
updatedAt?: pulumi.Input<string>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The set of arguments for constructing a Policy resource.
|
|
109
|
+
*/
|
|
110
|
+
export interface PolicyArgs {
|
|
111
|
+
/**
|
|
112
|
+
* Policy Description.
|
|
113
|
+
*/
|
|
114
|
+
description: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The module describing how the policy works. Create one in the Formal Console.
|
|
117
|
+
*/
|
|
118
|
+
module: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Policy Name
|
|
121
|
+
*/
|
|
122
|
+
name?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Notification settings for this policy.
|
|
125
|
+
*/
|
|
126
|
+
notification: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Owner of this policy: it can be either a group name or a user email.
|
|
129
|
+
*/
|
|
130
|
+
owner: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Defines the current status of the policy. It can be one of the following: 'draft', 'dry-run', or 'active'.
|
|
133
|
+
*/
|
|
134
|
+
status: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* If set to true, this Policy cannot be deleted.
|
|
137
|
+
*/
|
|
138
|
+
terminationProtection?: pulumi.Input<boolean>;
|
|
139
|
+
}
|
package/policy.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Policy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Creating a Policy in Formal.
|
|
10
|
+
*/
|
|
11
|
+
class Policy extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Policy resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name, id, state, opts) {
|
|
22
|
+
return new Policy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Policy. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj) {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === Policy.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
40
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
41
|
+
resourceInputs["module"] = state ? state.module : undefined;
|
|
42
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
43
|
+
resourceInputs["notification"] = state ? state.notification : undefined;
|
|
44
|
+
resourceInputs["owner"] = state ? state.owner : undefined;
|
|
45
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
46
|
+
resourceInputs["terminationProtection"] = state ? state.terminationProtection : undefined;
|
|
47
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const args = argsOrState;
|
|
51
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
52
|
+
throw new Error("Missing required property 'description'");
|
|
53
|
+
}
|
|
54
|
+
if ((!args || args.module === undefined) && !opts.urn) {
|
|
55
|
+
throw new Error("Missing required property 'module'");
|
|
56
|
+
}
|
|
57
|
+
if ((!args || args.notification === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'notification'");
|
|
59
|
+
}
|
|
60
|
+
if ((!args || args.owner === undefined) && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'owner'");
|
|
62
|
+
}
|
|
63
|
+
if ((!args || args.status === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'status'");
|
|
65
|
+
}
|
|
66
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
67
|
+
resourceInputs["module"] = args ? args.module : undefined;
|
|
68
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
69
|
+
resourceInputs["notification"] = args ? args.notification : undefined;
|
|
70
|
+
resourceInputs["owner"] = args ? args.owner : undefined;
|
|
71
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
72
|
+
resourceInputs["terminationProtection"] = args ? args.terminationProtection : undefined;
|
|
73
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
75
|
+
}
|
|
76
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
77
|
+
super(Policy.__pulumiType, name, resourceInputs, opts);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Policy = Policy;
|
|
81
|
+
/** @internal */
|
|
82
|
+
Policy.__pulumiType = 'formal:index/policy:Policy';
|
|
83
|
+
//# sourceMappingURL=policy.js.map
|
package/policy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QA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AM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AApHL,wBAqHC;AAvGG,gBAAgB;AACO,mBAAY,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Registering a policy data loader with Formal.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PolicyDataLoader extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing PolicyDataLoader resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param state Any extra arguments used during the lookup.
|
|
13
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
+
*/
|
|
15
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PolicyDataLoaderState, opts?: pulumi.CustomResourceOptions): PolicyDataLoader;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the given object is an instance of PolicyDataLoader. This is designed to work even
|
|
18
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
19
|
+
*/
|
|
20
|
+
static isInstance(obj: any): obj is PolicyDataLoader;
|
|
21
|
+
/**
|
|
22
|
+
* When the policy data loader was created.
|
|
23
|
+
*/
|
|
24
|
+
readonly createdAt: pulumi.Output<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Policy data loader description.
|
|
27
|
+
*/
|
|
28
|
+
readonly description: pulumi.Output<string>;
|
|
29
|
+
/**
|
|
30
|
+
* The key to access the output data of this policy data loader.
|
|
31
|
+
*/
|
|
32
|
+
readonly key: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Friendly name for this policy data loader.
|
|
35
|
+
*/
|
|
36
|
+
readonly name: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Defines the current status of the policy data loader. It can be one of the following: 'draft' or 'active'.
|
|
39
|
+
*/
|
|
40
|
+
readonly status: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* If set to true, this policy data loader cannot be deleted.
|
|
43
|
+
*/
|
|
44
|
+
readonly terminationProtection: pulumi.Output<boolean | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Last update time.
|
|
47
|
+
*/
|
|
48
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The code that will be executed to fetch and output the data.
|
|
51
|
+
*/
|
|
52
|
+
readonly workerCode: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The execution environment for the code. It can be one of the following: 'python3.11' or 'nodejs18.x'.
|
|
55
|
+
*/
|
|
56
|
+
readonly workerRuntime: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Second-based 'cron' expression specifying when the data should be fetched. For example, use '*/10 * * * * *' to run the code every 10 seconds.
|
|
59
|
+
*/
|
|
60
|
+
readonly workerSchedule: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Create a PolicyDataLoader resource with the given unique name, arguments, and options.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resource.
|
|
65
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
66
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
67
|
+
*/
|
|
68
|
+
constructor(name: string, args: PolicyDataLoaderArgs, opts?: pulumi.CustomResourceOptions);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Input properties used for looking up and filtering PolicyDataLoader resources.
|
|
72
|
+
*/
|
|
73
|
+
export interface PolicyDataLoaderState {
|
|
74
|
+
/**
|
|
75
|
+
* When the policy data loader was created.
|
|
76
|
+
*/
|
|
77
|
+
createdAt?: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Policy data loader description.
|
|
80
|
+
*/
|
|
81
|
+
description?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The key to access the output data of this policy data loader.
|
|
84
|
+
*/
|
|
85
|
+
key?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Friendly name for this policy data loader.
|
|
88
|
+
*/
|
|
89
|
+
name?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Defines the current status of the policy data loader. It can be one of the following: 'draft' or 'active'.
|
|
92
|
+
*/
|
|
93
|
+
status?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* If set to true, this policy data loader cannot be deleted.
|
|
96
|
+
*/
|
|
97
|
+
terminationProtection?: pulumi.Input<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Last update time.
|
|
100
|
+
*/
|
|
101
|
+
updatedAt?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The code that will be executed to fetch and output the data.
|
|
104
|
+
*/
|
|
105
|
+
workerCode?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The execution environment for the code. It can be one of the following: 'python3.11' or 'nodejs18.x'.
|
|
108
|
+
*/
|
|
109
|
+
workerRuntime?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Second-based 'cron' expression specifying when the data should be fetched. For example, use '*/10 * * * * *' to run the code every 10 seconds.
|
|
112
|
+
*/
|
|
113
|
+
workerSchedule?: pulumi.Input<string>;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The set of arguments for constructing a PolicyDataLoader resource.
|
|
117
|
+
*/
|
|
118
|
+
export interface PolicyDataLoaderArgs {
|
|
119
|
+
/**
|
|
120
|
+
* Policy data loader description.
|
|
121
|
+
*/
|
|
122
|
+
description: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The key to access the output data of this policy data loader.
|
|
125
|
+
*/
|
|
126
|
+
key: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Friendly name for this policy data loader.
|
|
129
|
+
*/
|
|
130
|
+
name?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Defines the current status of the policy data loader. It can be one of the following: 'draft' or 'active'.
|
|
133
|
+
*/
|
|
134
|
+
status: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* If set to true, this policy data loader cannot be deleted.
|
|
137
|
+
*/
|
|
138
|
+
terminationProtection?: pulumi.Input<boolean>;
|
|
139
|
+
/**
|
|
140
|
+
* The code that will be executed to fetch and output the data.
|
|
141
|
+
*/
|
|
142
|
+
workerCode: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The execution environment for the code. It can be one of the following: 'python3.11' or 'nodejs18.x'.
|
|
145
|
+
*/
|
|
146
|
+
workerRuntime: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Second-based 'cron' expression specifying when the data should be fetched. For example, use '*/10 * * * * *' to run the code every 10 seconds.
|
|
149
|
+
*/
|
|
150
|
+
workerSchedule: pulumi.Input<string>;
|
|
151
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PolicyDataLoader = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Registering a policy data loader with Formal.
|
|
10
|
+
*/
|
|
11
|
+
class PolicyDataLoader extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing PolicyDataLoader resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name, id, state, opts) {
|
|
22
|
+
return new PolicyDataLoader(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of PolicyDataLoader. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj) {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === PolicyDataLoader.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
40
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
41
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
42
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
43
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
44
|
+
resourceInputs["terminationProtection"] = state ? state.terminationProtection : undefined;
|
|
45
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
46
|
+
resourceInputs["workerCode"] = state ? state.workerCode : undefined;
|
|
47
|
+
resourceInputs["workerRuntime"] = state ? state.workerRuntime : undefined;
|
|
48
|
+
resourceInputs["workerSchedule"] = state ? state.workerSchedule : undefined;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const args = argsOrState;
|
|
52
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'description'");
|
|
54
|
+
}
|
|
55
|
+
if ((!args || args.key === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'key'");
|
|
57
|
+
}
|
|
58
|
+
if ((!args || args.status === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'status'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.workerCode === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'workerCode'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.workerRuntime === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'workerRuntime'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.workerSchedule === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'workerSchedule'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
71
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
72
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
73
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
74
|
+
resourceInputs["terminationProtection"] = args ? args.terminationProtection : undefined;
|
|
75
|
+
resourceInputs["workerCode"] = args ? args.workerCode : undefined;
|
|
76
|
+
resourceInputs["workerRuntime"] = args ? args.workerRuntime : undefined;
|
|
77
|
+
resourceInputs["workerSchedule"] = args ? args.workerSchedule : undefined;
|
|
78
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
80
|
+
}
|
|
81
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
|
+
super(PolicyDataLoader.__pulumiType, name, resourceInputs, opts);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.PolicyDataLoader = PolicyDataLoader;
|
|
86
|
+
/** @internal */
|
|
87
|
+
PolicyDataLoader.__pulumiType = 'formal:index/policyDataLoader:PolicyDataLoader';
|
|
88
|
+
//# sourceMappingURL=policyDataLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyDataLoader.js","sourceRoot":"","sources":["../policyDataLoader.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,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;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/provider.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the formal package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
readonly apiKey: pulumi.Output<string | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resource.
|
|
19
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
20
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
21
|
+
*/
|
|
22
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
23
|
+
/**
|
|
24
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
25
|
+
*/
|
|
26
|
+
terraformConfig(): pulumi.Output<Provider.TerraformConfigResult>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The set of arguments for constructing a Provider resource.
|
|
30
|
+
*/
|
|
31
|
+
export interface ProviderArgs {
|
|
32
|
+
apiKey?: pulumi.Input<string>;
|
|
33
|
+
retrieveSensitiveValues?: pulumi.Input<boolean>;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace Provider {
|
|
36
|
+
/**
|
|
37
|
+
* The results of the Provider.terraformConfig method.
|
|
38
|
+
*/
|
|
39
|
+
interface TerraformConfigResult {
|
|
40
|
+
readonly result: {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
package/provider.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The provider type for the formal package. By default, resources use package-wide configuration
|
|
10
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
11
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
12
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
|
+
*/
|
|
14
|
+
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resource.
|
|
29
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
30
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
31
|
+
*/
|
|
32
|
+
constructor(name, args, opts) {
|
|
33
|
+
let resourceInputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
{
|
|
36
|
+
resourceInputs["apiKey"] = args ? args.apiKey : undefined;
|
|
37
|
+
resourceInputs["retrieveSensitiveValues"] = pulumi.output(args ? args.retrieveSensitiveValues : undefined).apply(JSON.stringify);
|
|
38
|
+
}
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
44
|
+
*/
|
|
45
|
+
terraformConfig() {
|
|
46
|
+
return pulumi.runtime.call("pulumi:providers:formal/terraformConfig", {
|
|
47
|
+
"__self__": this,
|
|
48
|
+
}, this);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Provider = Provider;
|
|
52
|
+
/** @internal */
|
|
53
|
+
Provider.__pulumiType = 'formal';
|
|
54
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAID;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAA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