@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.
Files changed (141) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +59 -0
  3. package/config/index.d.ts +1 -0
  4. package/config/index.js +21 -0
  5. package/config/index.js.map +1 -0
  6. package/config/vars.d.ts +2 -0
  7. package/config/vars.js +19 -0
  8. package/config/vars.js.map +1 -0
  9. package/connector.d.ts +83 -0
  10. package/connector.js +60 -0
  11. package/connector.js.map +1 -0
  12. package/connectorConfiguration.d.ts +75 -0
  13. package/connectorConfiguration.js +59 -0
  14. package/connectorConfiguration.js.map +1 -0
  15. package/connectorHostname.d.ts +121 -0
  16. package/connectorHostname.js +70 -0
  17. package/connectorHostname.js.map +1 -0
  18. package/connectorListener.d.ts +75 -0
  19. package/connectorListener.js +59 -0
  20. package/connectorListener.js.map +1 -0
  21. package/connectorListenerLink.d.ts +75 -0
  22. package/connectorListenerLink.js +62 -0
  23. package/connectorListenerLink.js.map +1 -0
  24. package/connectorListenerRule.d.ts +87 -0
  25. package/connectorListenerRule.js +67 -0
  26. package/connectorListenerRule.js.map +1 -0
  27. package/dataDiscovery.d.ts +107 -0
  28. package/dataDiscovery.js +74 -0
  29. package/dataDiscovery.js.map +1 -0
  30. package/dataDomain.d.ts +117 -0
  31. package/dataDomain.js +73 -0
  32. package/dataDomain.js.map +1 -0
  33. package/dataLabel.d.ts +75 -0
  34. package/dataLabel.js +62 -0
  35. package/dataLabel.js.map +1 -0
  36. package/encryptionKey.d.ts +103 -0
  37. package/encryptionKey.js +74 -0
  38. package/encryptionKey.js.map +1 -0
  39. package/getGroup.d.ts +48 -0
  40. package/getGroup.js +28 -0
  41. package/getGroup.js.map +1 -0
  42. package/getResource.d.ts +68 -0
  43. package/getResource.js +28 -0
  44. package/getResource.js.map +1 -0
  45. package/group.d.ts +75 -0
  46. package/group.js +59 -0
  47. package/group.js.map +1 -0
  48. package/groupUserLink.d.ts +75 -0
  49. package/groupUserLink.js +62 -0
  50. package/groupUserLink.js.map +1 -0
  51. package/index.d.ts +118 -0
  52. package/index.js +233 -0
  53. package/index.js.map +1 -0
  54. package/integrationBi.d.ts +77 -0
  55. package/integrationBi.js +59 -0
  56. package/integrationBi.js.map +1 -0
  57. package/integrationCloud.d.ts +183 -0
  58. package/integrationCloud.js +83 -0
  59. package/integrationCloud.js.map +1 -0
  60. package/integrationDataCatalog.d.ts +89 -0
  61. package/integrationDataCatalog.js +64 -0
  62. package/integrationDataCatalog.js.map +1 -0
  63. package/integrationLog.d.ts +89 -0
  64. package/integrationLog.js +58 -0
  65. package/integrationLog.js.map +1 -0
  66. package/integrationMdm.d.ts +65 -0
  67. package/integrationMdm.js +54 -0
  68. package/integrationMdm.js.map +1 -0
  69. package/integrationMfa.d.ts +77 -0
  70. package/integrationMfa.js +56 -0
  71. package/integrationMfa.js.map +1 -0
  72. package/inventoryObjectDataLabelLink.d.ts +87 -0
  73. package/inventoryObjectDataLabelLink.js +70 -0
  74. package/inventoryObjectDataLabelLink.js.map +1 -0
  75. package/logConfiguration.d.ts +129 -0
  76. package/logConfiguration.js +78 -0
  77. package/logConfiguration.js.map +1 -0
  78. package/nativeUser.d.ts +99 -0
  79. package/nativeUser.js +71 -0
  80. package/nativeUser.js.map +1 -0
  81. package/nativeUserLink.d.ts +95 -0
  82. package/nativeUserLink.js +69 -0
  83. package/nativeUserLink.js.map +1 -0
  84. package/package.json +29 -0
  85. package/permission.d.ts +99 -0
  86. package/permission.js +69 -0
  87. package/permission.js.map +1 -0
  88. package/policy.d.ts +139 -0
  89. package/policy.js +83 -0
  90. package/policy.js.map +1 -0
  91. package/policyDataLoader.d.ts +151 -0
  92. package/policyDataLoader.js +88 -0
  93. package/policyDataLoader.js.map +1 -0
  94. package/provider.d.ts +44 -0
  95. package/provider.js +54 -0
  96. package/provider.js.map +1 -0
  97. package/resource.d.ts +149 -0
  98. package/resource.js +77 -0
  99. package/resource.js.map +1 -0
  100. package/resourceClassifierConfiguration.d.ts +79 -0
  101. package/resourceClassifierConfiguration.js +64 -0
  102. package/resourceClassifierConfiguration.js.map +1 -0
  103. package/resourceHealthCheck.d.ts +75 -0
  104. package/resourceHealthCheck.js +62 -0
  105. package/resourceHealthCheck.js.map +1 -0
  106. package/resourceHostname.d.ts +87 -0
  107. package/resourceHostname.js +64 -0
  108. package/resourceHostname.js.map +1 -0
  109. package/resourceTlsConfiguration.d.ts +87 -0
  110. package/resourceTlsConfiguration.js +64 -0
  111. package/resourceTlsConfiguration.js.map +1 -0
  112. package/satellite.d.ts +91 -0
  113. package/satellite.js +62 -0
  114. package/satellite.js.map +1 -0
  115. package/sidecar.d.ts +123 -0
  116. package/sidecar.js +74 -0
  117. package/sidecar.js.map +1 -0
  118. package/sidecarResourceLink.d.ts +87 -0
  119. package/sidecarResourceLink.js +67 -0
  120. package/sidecarResourceLink.js.map +1 -0
  121. package/space.d.ts +83 -0
  122. package/space.js +58 -0
  123. package/space.js.map +1 -0
  124. package/tracker.d.ts +103 -0
  125. package/tracker.js +68 -0
  126. package/tracker.js.map +1 -0
  127. package/types/index.d.ts +3 -0
  128. package/types/index.js +11 -0
  129. package/types/index.js.map +1 -0
  130. package/types/input.d.ts +196 -0
  131. package/types/input.js +5 -0
  132. package/types/input.js.map +1 -0
  133. package/types/output.d.ts +195 -0
  134. package/types/output.js +5 -0
  135. package/types/output.js.map +1 -0
  136. package/user.d.ts +151 -0
  137. package/user.js +75 -0
  138. package/user.js.map +1 -0
  139. package/utilities.d.ts +4 -0
  140. package/utilities.js +102 -0
  141. package/utilities.js.map +1 -0
@@ -0,0 +1,99 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource creates a Native User.
4
+ */
5
+ export declare class NativeUser extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing NativeUser 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?: NativeUserState, opts?: pulumi.CustomResourceOptions): NativeUser;
16
+ /**
17
+ * Returns true if the given object is an instance of NativeUser. 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 NativeUser;
21
+ /**
22
+ * The username of the Native User.
23
+ */
24
+ readonly nativeUserId: pulumi.Output<string>;
25
+ /**
26
+ * The password of the Native User.
27
+ */
28
+ readonly nativeUserSecret: pulumi.Output<string>;
29
+ /**
30
+ * The Sidecar ID for the resource this Native User is for.
31
+ */
32
+ readonly resourceId: pulumi.Output<string>;
33
+ /**
34
+ * If set to true, this Native User cannot be deleted.
35
+ */
36
+ readonly terminationProtection: pulumi.Output<boolean | undefined>;
37
+ /**
38
+ * The password of the Native User.
39
+ */
40
+ readonly useAsDefault: pulumi.Output<boolean | undefined>;
41
+ /**
42
+ * Create a NativeUser resource with the given unique name, arguments, and options.
43
+ *
44
+ * @param name The _unique_ name of the resource.
45
+ * @param args The arguments to use to populate this resource's properties.
46
+ * @param opts A bag of options that control this resource's behavior.
47
+ */
48
+ constructor(name: string, args: NativeUserArgs, opts?: pulumi.CustomResourceOptions);
49
+ }
50
+ /**
51
+ * Input properties used for looking up and filtering NativeUser resources.
52
+ */
53
+ export interface NativeUserState {
54
+ /**
55
+ * The username of the Native User.
56
+ */
57
+ nativeUserId?: pulumi.Input<string>;
58
+ /**
59
+ * The password of the Native User.
60
+ */
61
+ nativeUserSecret?: pulumi.Input<string>;
62
+ /**
63
+ * The Sidecar ID for the resource this Native User is for.
64
+ */
65
+ resourceId?: pulumi.Input<string>;
66
+ /**
67
+ * If set to true, this Native User cannot be deleted.
68
+ */
69
+ terminationProtection?: pulumi.Input<boolean>;
70
+ /**
71
+ * The password of the Native User.
72
+ */
73
+ useAsDefault?: pulumi.Input<boolean>;
74
+ }
75
+ /**
76
+ * The set of arguments for constructing a NativeUser resource.
77
+ */
78
+ export interface NativeUserArgs {
79
+ /**
80
+ * The username of the Native User.
81
+ */
82
+ nativeUserId: pulumi.Input<string>;
83
+ /**
84
+ * The password of the Native User.
85
+ */
86
+ nativeUserSecret: pulumi.Input<string>;
87
+ /**
88
+ * The Sidecar ID for the resource this Native User is for.
89
+ */
90
+ resourceId: pulumi.Input<string>;
91
+ /**
92
+ * If set to true, this Native User cannot be deleted.
93
+ */
94
+ terminationProtection?: pulumi.Input<boolean>;
95
+ /**
96
+ * The password of the Native User.
97
+ */
98
+ useAsDefault?: pulumi.Input<boolean>;
99
+ }
package/nativeUser.js ADDED
@@ -0,0 +1,71 @@
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.NativeUser = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * This resource creates a Native User.
10
+ */
11
+ class NativeUser extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing NativeUser 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 NativeUser(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of NativeUser. 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'] === NativeUser.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["nativeUserId"] = state ? state.nativeUserId : undefined;
40
+ resourceInputs["nativeUserSecret"] = state ? state.nativeUserSecret : undefined;
41
+ resourceInputs["resourceId"] = state ? state.resourceId : undefined;
42
+ resourceInputs["terminationProtection"] = state ? state.terminationProtection : undefined;
43
+ resourceInputs["useAsDefault"] = state ? state.useAsDefault : undefined;
44
+ }
45
+ else {
46
+ const args = argsOrState;
47
+ if ((!args || args.nativeUserId === undefined) && !opts.urn) {
48
+ throw new Error("Missing required property 'nativeUserId'");
49
+ }
50
+ if ((!args || args.nativeUserSecret === undefined) && !opts.urn) {
51
+ throw new Error("Missing required property 'nativeUserSecret'");
52
+ }
53
+ if ((!args || args.resourceId === undefined) && !opts.urn) {
54
+ throw new Error("Missing required property 'resourceId'");
55
+ }
56
+ resourceInputs["nativeUserId"] = args ? args.nativeUserId : undefined;
57
+ resourceInputs["nativeUserSecret"] = (args === null || args === void 0 ? void 0 : args.nativeUserSecret) ? pulumi.secret(args.nativeUserSecret) : undefined;
58
+ resourceInputs["resourceId"] = args ? args.resourceId : undefined;
59
+ resourceInputs["terminationProtection"] = args ? args.terminationProtection : undefined;
60
+ resourceInputs["useAsDefault"] = args ? args.useAsDefault : undefined;
61
+ }
62
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
63
+ const secretOpts = { additionalSecretOutputs: ["nativeUserSecret"] };
64
+ opts = pulumi.mergeOptions(opts, secretOpts);
65
+ super(NativeUser.__pulumiType, name, resourceInputs, opts);
66
+ }
67
+ }
68
+ exports.NativeUser = NativeUser;
69
+ /** @internal */
70
+ NativeUser.__pulumiType = 'formal:index/nativeUser:NativeUser';
71
+ //# sourceMappingURL=nativeUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeUser.js","sourceRoot":"","sources":["../nativeUser.ts"],"names":[],"mappings":";AAAA,sEA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ACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACrE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAxFL,gCAyFC;AA3EG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,95 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource creates assigns a Native User to a Formal Identity.
4
+ */
5
+ export declare class NativeUserLink extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing NativeUserLink 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?: NativeUserLinkState, opts?: pulumi.CustomResourceOptions): NativeUserLink;
16
+ /**
17
+ * Returns true if the given object is an instance of NativeUserLink. 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 NativeUserLink;
21
+ /**
22
+ * The Formal ID for the User, Group, or Resource Hostname to be linked.
23
+ */
24
+ readonly formalIdentityId: pulumi.Output<string>;
25
+ /**
26
+ * The type of Formal Identity to be linked. Accepted values are `user`, `group`, and `resourceHostname`.
27
+ */
28
+ readonly formalIdentityType: pulumi.Output<string>;
29
+ /**
30
+ * The Native User ID of the Native User.
31
+ */
32
+ readonly nativeUserId: pulumi.Output<string>;
33
+ /**
34
+ * The Resource ID of the Native User.
35
+ */
36
+ readonly resourceId: pulumi.Output<string>;
37
+ /**
38
+ * If set to true, this Native User link cannot be deleted.
39
+ */
40
+ readonly terminationProtection: pulumi.Output<boolean | undefined>;
41
+ /**
42
+ * Create a NativeUserLink resource with the given unique name, arguments, and options.
43
+ *
44
+ * @param name The _unique_ name of the resource.
45
+ * @param args The arguments to use to populate this resource's properties.
46
+ * @param opts A bag of options that control this resource's behavior.
47
+ */
48
+ constructor(name: string, args: NativeUserLinkArgs, opts?: pulumi.CustomResourceOptions);
49
+ }
50
+ /**
51
+ * Input properties used for looking up and filtering NativeUserLink resources.
52
+ */
53
+ export interface NativeUserLinkState {
54
+ /**
55
+ * The Formal ID for the User, Group, or Resource Hostname to be linked.
56
+ */
57
+ formalIdentityId?: pulumi.Input<string>;
58
+ /**
59
+ * The type of Formal Identity to be linked. Accepted values are `user`, `group`, and `resourceHostname`.
60
+ */
61
+ formalIdentityType?: pulumi.Input<string>;
62
+ /**
63
+ * The Native User ID of the Native User.
64
+ */
65
+ nativeUserId?: pulumi.Input<string>;
66
+ /**
67
+ * The Resource ID of the Native User.
68
+ */
69
+ resourceId?: pulumi.Input<string>;
70
+ /**
71
+ * If set to true, this Native User link cannot be deleted.
72
+ */
73
+ terminationProtection?: pulumi.Input<boolean>;
74
+ }
75
+ /**
76
+ * The set of arguments for constructing a NativeUserLink resource.
77
+ */
78
+ export interface NativeUserLinkArgs {
79
+ /**
80
+ * The Formal ID for the User, Group, or Resource Hostname to be linked.
81
+ */
82
+ formalIdentityId: pulumi.Input<string>;
83
+ /**
84
+ * The type of Formal Identity to be linked. Accepted values are `user`, `group`, and `resourceHostname`.
85
+ */
86
+ formalIdentityType: pulumi.Input<string>;
87
+ /**
88
+ * The Native User ID of the Native User.
89
+ */
90
+ nativeUserId: pulumi.Input<string>;
91
+ /**
92
+ * If set to true, this Native User link cannot be deleted.
93
+ */
94
+ terminationProtection?: pulumi.Input<boolean>;
95
+ }
@@ -0,0 +1,69 @@
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.NativeUserLink = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * This resource creates assigns a Native User to a Formal Identity.
10
+ */
11
+ class NativeUserLink extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing NativeUserLink 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 NativeUserLink(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of NativeUserLink. 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'] === NativeUserLink.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["formalIdentityId"] = state ? state.formalIdentityId : undefined;
40
+ resourceInputs["formalIdentityType"] = state ? state.formalIdentityType : undefined;
41
+ resourceInputs["nativeUserId"] = state ? state.nativeUserId : undefined;
42
+ resourceInputs["resourceId"] = state ? state.resourceId : undefined;
43
+ resourceInputs["terminationProtection"] = state ? state.terminationProtection : undefined;
44
+ }
45
+ else {
46
+ const args = argsOrState;
47
+ if ((!args || args.formalIdentityId === undefined) && !opts.urn) {
48
+ throw new Error("Missing required property 'formalIdentityId'");
49
+ }
50
+ if ((!args || args.formalIdentityType === undefined) && !opts.urn) {
51
+ throw new Error("Missing required property 'formalIdentityType'");
52
+ }
53
+ if ((!args || args.nativeUserId === undefined) && !opts.urn) {
54
+ throw new Error("Missing required property 'nativeUserId'");
55
+ }
56
+ resourceInputs["formalIdentityId"] = args ? args.formalIdentityId : undefined;
57
+ resourceInputs["formalIdentityType"] = args ? args.formalIdentityType : undefined;
58
+ resourceInputs["nativeUserId"] = args ? args.nativeUserId : undefined;
59
+ resourceInputs["terminationProtection"] = args ? args.terminationProtection : undefined;
60
+ resourceInputs["resourceId"] = undefined /*out*/;
61
+ }
62
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
63
+ super(NativeUserLink.__pulumiType, name, resourceInputs, opts);
64
+ }
65
+ }
66
+ exports.NativeUserLink = NativeUserLink;
67
+ /** @internal */
68
+ NativeUserLink.__pulumiType = 'formal:index/nativeUserLink:NativeUserLink';
69
+ //# sourceMappingURL=nativeUserLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeUserLink.js","sourceRoot":"","sources":["../nativeUserLink.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA+BD,YAAY,IAA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;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAtFL,wCAuFC;AAzEG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@formalco/pulumi",
3
+ "version": "1.0.0-alpha.1754615478",
4
+ "description": "A Pulumi package for creating and managing Formal resources.",
5
+ "keywords": [
6
+ "formal",
7
+ "category/cloud",
8
+ "category/database",
9
+ "category/network"
10
+ ],
11
+ "homepage": "https://joinformal.com",
12
+ "repository": "https://github.com/formalco/pulumi-formal",
13
+ "license": "MPL-2.0",
14
+ "scripts": {
15
+ "build": "tsc"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.142.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/node": "^18",
22
+ "typescript": "^4.3.5"
23
+ },
24
+ "pulumi": {
25
+ "resource": true,
26
+ "name": "formal",
27
+ "version": "1.0.0-alpha.1754615478"
28
+ }
29
+ }
@@ -0,0 +1,99 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Creating a Permission in Formal.
4
+ */
5
+ export declare class Permission extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing Permission 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?: PermissionState, opts?: pulumi.CustomResourceOptions): Permission;
16
+ /**
17
+ * Returns true if the given object is an instance of Permission. 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 Permission;
21
+ /**
22
+ * The code describing how the permission works. Create one in the Formal Console.
23
+ */
24
+ readonly code: pulumi.Output<string>;
25
+ /**
26
+ * Permission Description.
27
+ */
28
+ readonly description: pulumi.Output<string>;
29
+ /**
30
+ * Permission Name
31
+ */
32
+ readonly name: pulumi.Output<string>;
33
+ /**
34
+ * Defines the current status of the permission. It can be one of the following: 'draft', 'dry-run', or 'active'.
35
+ */
36
+ readonly status: pulumi.Output<string>;
37
+ /**
38
+ * If set to true, this Permission cannot be deleted.
39
+ */
40
+ readonly terminationProtection: pulumi.Output<boolean | undefined>;
41
+ /**
42
+ * Create a Permission resource with the given unique name, arguments, and options.
43
+ *
44
+ * @param name The _unique_ name of the resource.
45
+ * @param args The arguments to use to populate this resource's properties.
46
+ * @param opts A bag of options that control this resource's behavior.
47
+ */
48
+ constructor(name: string, args: PermissionArgs, opts?: pulumi.CustomResourceOptions);
49
+ }
50
+ /**
51
+ * Input properties used for looking up and filtering Permission resources.
52
+ */
53
+ export interface PermissionState {
54
+ /**
55
+ * The code describing how the permission works. Create one in the Formal Console.
56
+ */
57
+ code?: pulumi.Input<string>;
58
+ /**
59
+ * Permission Description.
60
+ */
61
+ description?: pulumi.Input<string>;
62
+ /**
63
+ * Permission Name
64
+ */
65
+ name?: pulumi.Input<string>;
66
+ /**
67
+ * Defines the current status of the permission. It can be one of the following: 'draft', 'dry-run', or 'active'.
68
+ */
69
+ status?: pulumi.Input<string>;
70
+ /**
71
+ * If set to true, this Permission cannot be deleted.
72
+ */
73
+ terminationProtection?: pulumi.Input<boolean>;
74
+ }
75
+ /**
76
+ * The set of arguments for constructing a Permission resource.
77
+ */
78
+ export interface PermissionArgs {
79
+ /**
80
+ * The code describing how the permission works. Create one in the Formal Console.
81
+ */
82
+ code: pulumi.Input<string>;
83
+ /**
84
+ * Permission Description.
85
+ */
86
+ description: pulumi.Input<string>;
87
+ /**
88
+ * Permission Name
89
+ */
90
+ name?: pulumi.Input<string>;
91
+ /**
92
+ * Defines the current status of the permission. It can be one of the following: 'draft', 'dry-run', or 'active'.
93
+ */
94
+ status: pulumi.Input<string>;
95
+ /**
96
+ * If set to true, this Permission cannot be deleted.
97
+ */
98
+ terminationProtection?: pulumi.Input<boolean>;
99
+ }
package/permission.js ADDED
@@ -0,0 +1,69 @@
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.Permission = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Creating a Permission in Formal.
10
+ */
11
+ class Permission extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing Permission 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 Permission(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of Permission. 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'] === Permission.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["code"] = state ? state.code : undefined;
40
+ resourceInputs["description"] = state ? state.description : undefined;
41
+ resourceInputs["name"] = state ? state.name : undefined;
42
+ resourceInputs["status"] = state ? state.status : undefined;
43
+ resourceInputs["terminationProtection"] = state ? state.terminationProtection : undefined;
44
+ }
45
+ else {
46
+ const args = argsOrState;
47
+ if ((!args || args.code === undefined) && !opts.urn) {
48
+ throw new Error("Missing required property 'code'");
49
+ }
50
+ if ((!args || args.description === undefined) && !opts.urn) {
51
+ throw new Error("Missing required property 'description'");
52
+ }
53
+ if ((!args || args.status === undefined) && !opts.urn) {
54
+ throw new Error("Missing required property 'status'");
55
+ }
56
+ resourceInputs["code"] = args ? args.code : undefined;
57
+ resourceInputs["description"] = args ? args.description : undefined;
58
+ resourceInputs["name"] = args ? args.name : undefined;
59
+ resourceInputs["status"] = args ? args.status : undefined;
60
+ resourceInputs["terminationProtection"] = args ? args.terminationProtection : undefined;
61
+ }
62
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
63
+ super(Permission.__pulumiType, name, resourceInputs, opts);
64
+ }
65
+ }
66
+ exports.Permission = Permission;
67
+ /** @internal */
68
+ Permission.__pulumiType = 'formal:index/permission:Permission';
69
+ //# sourceMappingURL=permission.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.js","sourceRoot":"","sources":["../permission.ts"],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