@pulumi/pulumiservice 0.40.0 → 0.41.0

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 (225) hide show
  1. package/config/vars.js +1 -1
  2. package/config/vars.js.map +1 -1
  3. package/index.d.ts +2 -1
  4. package/index.d.ts.map +1 -1
  5. package/index.js +3 -1
  6. package/index.js.map +1 -1
  7. package/package.json +2 -2
  8. package/provider.js +1 -1
  9. package/provider.js.map +1 -1
  10. package/v1/agents/index.d.ts +7 -0
  11. package/v1/agents/index.d.ts.map +1 -0
  12. package/v1/agents/index.js +49 -0
  13. package/v1/agents/index.js.map +1 -0
  14. package/v1/agents/pool.d.ts +74 -0
  15. package/v1/agents/pool.d.ts.map +1 -0
  16. package/v1/agents/pool.js +101 -0
  17. package/v1/agents/pool.js.map +1 -0
  18. package/v1/agents/task.d.ts +158 -0
  19. package/v1/agents/task.d.ts.map +1 -0
  20. package/v1/agents/task.js +127 -0
  21. package/v1/agents/task.js.map +1 -0
  22. package/v1/auditLogExportConfiguration.d.ts +58 -0
  23. package/v1/auditLogExportConfiguration.d.ts.map +1 -0
  24. package/v1/auditLogExportConfiguration.js +95 -0
  25. package/v1/auditLogExportConfiguration.js.map +1 -0
  26. package/v1/auth/index.d.ts +10 -0
  27. package/v1/auth/index.d.ts.map +1 -0
  28. package/v1/auth/index.js +53 -0
  29. package/v1/auth/index.js.map +1 -0
  30. package/v1/auth/oidcIssuer.d.ts +102 -0
  31. package/v1/auth/oidcIssuer.d.ts.map +1 -0
  32. package/v1/auth/oidcIssuer.js +107 -0
  33. package/v1/auth/oidcIssuer.js.map +1 -0
  34. package/v1/auth/policy.d.ts +81 -0
  35. package/v1/auth/policy.d.ts.map +1 -0
  36. package/v1/auth/policy.js +109 -0
  37. package/v1/auth/policy.js.map +1 -0
  38. package/v1/auth/saml.d.ts +72 -0
  39. package/v1/auth/saml.d.ts.map +1 -0
  40. package/v1/auth/saml.js +96 -0
  41. package/v1/auth/saml.js.map +1 -0
  42. package/v1/defaultOrganization.d.ts +50 -0
  43. package/v1/defaultOrganization.d.ts.map +1 -0
  44. package/v1/defaultOrganization.js +85 -0
  45. package/v1/defaultOrganization.js.map +1 -0
  46. package/v1/deployments/index.d.ts +7 -0
  47. package/v1/deployments/index.d.ts.map +1 -0
  48. package/v1/deployments/index.js +49 -0
  49. package/v1/deployments/index.js.map +1 -0
  50. package/v1/deployments/scheduledDeployment.d.ts +108 -0
  51. package/v1/deployments/scheduledDeployment.d.ts.map +1 -0
  52. package/v1/deployments/scheduledDeployment.js +112 -0
  53. package/v1/deployments/scheduledDeployment.js.map +1 -0
  54. package/v1/deployments/settings.d.ts +118 -0
  55. package/v1/deployments/settings.d.ts.map +1 -0
  56. package/v1/deployments/settings.js +109 -0
  57. package/v1/deployments/settings.js.map +1 -0
  58. package/v1/esc/environment.d.ts +54 -0
  59. package/v1/esc/environment.d.ts.map +1 -0
  60. package/v1/esc/environment.js +93 -0
  61. package/v1/esc/environment.js.map +1 -0
  62. package/v1/esc/environmentDraft.d.ts +62 -0
  63. package/v1/esc/environmentDraft.d.ts.map +1 -0
  64. package/v1/esc/environmentDraft.js +97 -0
  65. package/v1/esc/environmentDraft.js.map +1 -0
  66. package/v1/esc/environmentSchedule.d.ts +108 -0
  67. package/v1/esc/environmentSchedule.d.ts.map +1 -0
  68. package/v1/esc/environmentSchedule.js +112 -0
  69. package/v1/esc/environmentSchedule.js.map +1 -0
  70. package/v1/esc/environmentSettings.d.ts +54 -0
  71. package/v1/esc/environmentSettings.d.ts.map +1 -0
  72. package/v1/esc/environmentSettings.js +91 -0
  73. package/v1/esc/environmentSettings.js.map +1 -0
  74. package/v1/esc/environmentTag.d.ts +78 -0
  75. package/v1/esc/environmentTag.d.ts.map +1 -0
  76. package/v1/esc/environmentTag.js +107 -0
  77. package/v1/esc/environmentTag.js.map +1 -0
  78. package/v1/esc/index.d.ts +25 -0
  79. package/v1/esc/index.d.ts.map +1 -0
  80. package/v1/esc/index.js +73 -0
  81. package/v1/esc/index.js.map +1 -0
  82. package/v1/esc/openEnvironmentRequest.d.ts +66 -0
  83. package/v1/esc/openEnvironmentRequest.d.ts.map +1 -0
  84. package/v1/esc/openEnvironmentRequest.js +100 -0
  85. package/v1/esc/openEnvironmentRequest.js.map +1 -0
  86. package/v1/esc/revisionTag.d.ts +78 -0
  87. package/v1/esc/revisionTag.d.ts.map +1 -0
  88. package/v1/esc/revisionTag.js +104 -0
  89. package/v1/esc/revisionTag.js.map +1 -0
  90. package/v1/esc/webhook.d.ts +140 -0
  91. package/v1/esc/webhook.d.ts.map +1 -0
  92. package/v1/esc/webhook.js +128 -0
  93. package/v1/esc/webhook.js.map +1 -0
  94. package/v1/gate.d.ts +78 -0
  95. package/v1/gate.d.ts.map +1 -0
  96. package/v1/gate.js +103 -0
  97. package/v1/gate.js.map +1 -0
  98. package/v1/index.d.ts +36 -0
  99. package/v1/index.d.ts.map +1 -0
  100. package/v1/index.js +94 -0
  101. package/v1/index.js.map +1 -0
  102. package/v1/insights/account.d.ts +110 -0
  103. package/v1/insights/account.d.ts.map +1 -0
  104. package/v1/insights/account.js +112 -0
  105. package/v1/insights/account.js.map +1 -0
  106. package/v1/insights/index.d.ts +7 -0
  107. package/v1/insights/index.d.ts.map +1 -0
  108. package/v1/insights/index.js +49 -0
  109. package/v1/insights/index.js.map +1 -0
  110. package/v1/insights/scheduledScanSettings.d.ts +90 -0
  111. package/v1/insights/scheduledScanSettings.d.ts.map +1 -0
  112. package/v1/insights/scheduledScanSettings.js +100 -0
  113. package/v1/insights/scheduledScanSettings.js.map +1 -0
  114. package/v1/integrations/azureDevOpsIntegration.d.ts +86 -0
  115. package/v1/integrations/azureDevOpsIntegration.d.ts.map +1 -0
  116. package/v1/integrations/azureDevOpsIntegration.js +101 -0
  117. package/v1/integrations/azureDevOpsIntegration.js.map +1 -0
  118. package/v1/integrations/bitBucketIntegration.d.ts +98 -0
  119. package/v1/integrations/bitBucketIntegration.d.ts.map +1 -0
  120. package/v1/integrations/bitBucketIntegration.js +107 -0
  121. package/v1/integrations/bitBucketIntegration.js.map +1 -0
  122. package/v1/integrations/customVCSIntegration.d.ts +98 -0
  123. package/v1/integrations/customVCSIntegration.d.ts.map +1 -0
  124. package/v1/integrations/customVCSIntegration.js +112 -0
  125. package/v1/integrations/customVCSIntegration.js.map +1 -0
  126. package/v1/integrations/customVCSRepository.d.ts +50 -0
  127. package/v1/integrations/customVCSRepository.d.ts.map +1 -0
  128. package/v1/integrations/customVCSRepository.js +90 -0
  129. package/v1/integrations/customVCSRepository.js.map +1 -0
  130. package/v1/integrations/gitHubEnterpriseIntegration.d.ts +118 -0
  131. package/v1/integrations/gitHubEnterpriseIntegration.d.ts.map +1 -0
  132. package/v1/integrations/gitHubEnterpriseIntegration.js +115 -0
  133. package/v1/integrations/gitHubEnterpriseIntegration.js.map +1 -0
  134. package/v1/integrations/gitHubIntegration.d.ts +118 -0
  135. package/v1/integrations/gitHubIntegration.d.ts.map +1 -0
  136. package/v1/integrations/gitHubIntegration.js +115 -0
  137. package/v1/integrations/gitHubIntegration.js.map +1 -0
  138. package/v1/integrations/gitLabIntegration.d.ts +102 -0
  139. package/v1/integrations/gitLabIntegration.d.ts.map +1 -0
  140. package/v1/integrations/gitLabIntegration.js +111 -0
  141. package/v1/integrations/gitLabIntegration.js.map +1 -0
  142. package/v1/integrations/index.d.ts +22 -0
  143. package/v1/integrations/index.d.ts.map +1 -0
  144. package/v1/integrations/index.js +69 -0
  145. package/v1/integrations/index.js.map +1 -0
  146. package/v1/orgTemplateCollection.d.ts +82 -0
  147. package/v1/orgTemplateCollection.d.ts.map +1 -0
  148. package/v1/orgTemplateCollection.js +101 -0
  149. package/v1/orgTemplateCollection.js.map +1 -0
  150. package/v1/organizationMember.d.ts +79 -0
  151. package/v1/organizationMember.d.ts.map +1 -0
  152. package/v1/organizationMember.js +106 -0
  153. package/v1/organizationMember.js.map +1 -0
  154. package/v1/organizationWebhook.d.ts +146 -0
  155. package/v1/organizationWebhook.d.ts.map +1 -0
  156. package/v1/organizationWebhook.js +128 -0
  157. package/v1/organizationWebhook.js.map +1 -0
  158. package/v1/policyGroup.d.ts +86 -0
  159. package/v1/policyGroup.d.ts.map +1 -0
  160. package/v1/policyGroup.js +103 -0
  161. package/v1/policyGroup.js.map +1 -0
  162. package/v1/role.d.ts +114 -0
  163. package/v1/role.d.ts.map +1 -0
  164. package/v1/role.js +106 -0
  165. package/v1/role.js.map +1 -0
  166. package/v1/services/index.d.ts +7 -0
  167. package/v1/services/index.d.ts.map +1 -0
  168. package/v1/services/index.js +49 -0
  169. package/v1/services/index.js.map +1 -0
  170. package/v1/services/item.d.ts +67 -0
  171. package/v1/services/item.d.ts.map +1 -0
  172. package/v1/services/item.js +102 -0
  173. package/v1/services/item.js.map +1 -0
  174. package/v1/services/service.d.ts +71 -0
  175. package/v1/services/service.d.ts.map +1 -0
  176. package/v1/services/service.js +108 -0
  177. package/v1/services/service.js.map +1 -0
  178. package/v1/stacks/config.d.ts +78 -0
  179. package/v1/stacks/config.d.ts.map +1 -0
  180. package/v1/stacks/config.js +102 -0
  181. package/v1/stacks/config.js.map +1 -0
  182. package/v1/stacks/index.d.ts +13 -0
  183. package/v1/stacks/index.d.ts.map +1 -0
  184. package/v1/stacks/index.js +57 -0
  185. package/v1/stacks/index.js.map +1 -0
  186. package/v1/stacks/stack.d.ts +105 -0
  187. package/v1/stacks/stack.d.ts.map +1 -0
  188. package/v1/stacks/stack.js +110 -0
  189. package/v1/stacks/stack.js.map +1 -0
  190. package/v1/stacks/tag.d.ts +54 -0
  191. package/v1/stacks/tag.d.ts.map +1 -0
  192. package/v1/stacks/tag.js +97 -0
  193. package/v1/stacks/tag.js.map +1 -0
  194. package/v1/stacks/webhook.d.ts +148 -0
  195. package/v1/stacks/webhook.d.ts.map +1 -0
  196. package/v1/stacks/webhook.js +136 -0
  197. package/v1/stacks/webhook.js.map +1 -0
  198. package/v1/teams/index.d.ts +7 -0
  199. package/v1/teams/index.d.ts.map +1 -0
  200. package/v1/teams/index.js +49 -0
  201. package/v1/teams/index.js.map +1 -0
  202. package/v1/teams/role.d.ts +47 -0
  203. package/v1/teams/role.d.ts.map +1 -0
  204. package/v1/teams/role.js +90 -0
  205. package/v1/teams/role.js.map +1 -0
  206. package/v1/teams/team.d.ts +98 -0
  207. package/v1/teams/team.d.ts.map +1 -0
  208. package/v1/teams/team.js +113 -0
  209. package/v1/teams/team.js.map +1 -0
  210. package/v1/tokens/index.d.ts +10 -0
  211. package/v1/tokens/index.d.ts.map +1 -0
  212. package/v1/tokens/index.js +53 -0
  213. package/v1/tokens/index.js.map +1 -0
  214. package/v1/tokens/orgToken.d.ts +74 -0
  215. package/v1/tokens/orgToken.d.ts.map +1 -0
  216. package/v1/tokens/orgToken.js +109 -0
  217. package/v1/tokens/orgToken.js.map +1 -0
  218. package/v1/tokens/personalToken.d.ts +54 -0
  219. package/v1/tokens/personalToken.d.ts.map +1 -0
  220. package/v1/tokens/personalToken.js +92 -0
  221. package/v1/tokens/personalToken.js.map +1 -0
  222. package/v1/tokens/teamToken.d.ts +70 -0
  223. package/v1/tokens/teamToken.d.ts.map +1 -0
  224. package/v1/tokens/teamToken.js +108 -0
  225. package/v1/tokens/teamToken.js.map +1 -0
@@ -0,0 +1,106 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.OrganizationMember = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Adds an existing Pulumi user to an organization with a built-in role. **Important:** The user must have already signed up for a Pulumi account before they can be added to an organization.
33
+ *
34
+ * This endpoint only assigns built-in roles. To onboard a user with a custom role, use the organization invite flow (`BatchCreateOrgInviteEmail`) and set `roleId` on the invite — the custom role is applied when the user accepts. Alternatively, add the user here with a built-in role and then call `UpdateOrganizationMember` with `fgaRoleId` to reassign.
35
+ *
36
+ * Returns the newly created organization member record. Returns 409 if the user is already a member of the organization.
37
+ */
38
+ class OrganizationMember extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing OrganizationMember resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param opts Optional settings to control the behavior of the CustomResource.
46
+ */
47
+ static get(name, id, opts) {
48
+ return new OrganizationMember(name, undefined, { ...opts, id: id });
49
+ }
50
+ /** @internal */
51
+ static __pulumiType = 'pulumiservice:v1:OrganizationMember';
52
+ /**
53
+ * Returns true if the given object is an instance of OrganizationMember. This is designed to work even
54
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
+ */
56
+ static isInstance(obj) {
57
+ if (obj === undefined || obj === null) {
58
+ return false;
59
+ }
60
+ return obj['__pulumiType'] === OrganizationMember.__pulumiType;
61
+ }
62
+ /**
63
+ * Create a OrganizationMember resource with the given unique name, arguments, and options.
64
+ *
65
+ * @param name The _unique_ name of the resource.
66
+ * @param args The arguments to use to populate this resource's properties.
67
+ * @param opts A bag of options that control this resource's behavior.
68
+ */
69
+ constructor(name, args, opts) {
70
+ let resourceInputs = {};
71
+ opts = opts || {};
72
+ if (!opts.id) {
73
+ if (args?.orgName === undefined && !opts.urn) {
74
+ throw new Error("Missing required property 'orgName'");
75
+ }
76
+ if (args?.role === undefined && !opts.urn) {
77
+ throw new Error("Missing required property 'role'");
78
+ }
79
+ if (args?.userLogin === undefined && !opts.urn) {
80
+ throw new Error("Missing required property 'userLogin'");
81
+ }
82
+ resourceInputs["orgName"] = args?.orgName;
83
+ resourceInputs["role"] = args?.role;
84
+ resourceInputs["userLogin"] = args?.userLogin;
85
+ resourceInputs["created"] = undefined /*out*/;
86
+ resourceInputs["fgaRole"] = undefined /*out*/;
87
+ resourceInputs["knownToPulumi"] = undefined /*out*/;
88
+ resourceInputs["links"] = undefined /*out*/;
89
+ resourceInputs["user"] = undefined /*out*/;
90
+ resourceInputs["virtualAdmin"] = undefined /*out*/;
91
+ }
92
+ else {
93
+ resourceInputs["created"] = undefined /*out*/;
94
+ resourceInputs["fgaRole"] = undefined /*out*/;
95
+ resourceInputs["knownToPulumi"] = undefined /*out*/;
96
+ resourceInputs["links"] = undefined /*out*/;
97
+ resourceInputs["role"] = undefined /*out*/;
98
+ resourceInputs["user"] = undefined /*out*/;
99
+ resourceInputs["virtualAdmin"] = undefined /*out*/;
100
+ }
101
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
102
+ super(OrganizationMember.__pulumiType, name, resourceInputs, opts);
103
+ }
104
+ }
105
+ exports.OrganizationMember = OrganizationMember;
106
+ //# sourceMappingURL=organizationMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationMember.js","sourceRoot":"","sources":["../../v1/organizationMember.ts"],"names":[],"mappings":";AAAA,sEAAsE;AAC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pulumi";
2
+ /**
3
+ * Creates a new webhook for an organization to notify external services when events occur. Webhooks can be configured to fire on stack events (created, deleted, update succeeded/failed), deployment events (queued, started, succeeded, failed), drift detection events, and policy violation events (mandatory, advisory).
4
+ *
5
+ * The `format` field accepts: `raw` (default), `slack`, `ms_teams`, or `pulumi_deployments`.
6
+ *
7
+ * The `filters` field accepts a list of event types to subscribe to. See the [webhook event filtering documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#event-filtering) for available filters.
8
+ *
9
+ * The optional `secret` field sets the HMAC key for signature verification via the `Pulumi-Webhook-Signature` header. See the [webhook headers documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#headers) for details.
10
+ */
11
+ export declare class OrganizationWebhook extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing OrganizationWebhook 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 opts Optional settings to control the behavior of the CustomResource.
19
+ */
20
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): OrganizationWebhook;
21
+ /**
22
+ * Returns true if the given object is an instance of OrganizationWebhook. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj: any): obj is OrganizationWebhook;
26
+ /**
27
+ * Whether the webhook is active and will receive deliveries.
28
+ */
29
+ readonly active: pulumi.Output<boolean>;
30
+ /**
31
+ * The human-readable display name shown in the UI.
32
+ */
33
+ readonly displayName: pulumi.Output<string>;
34
+ /**
35
+ * The environment name. Set when the webhook is scoped to a specific environment.
36
+ */
37
+ readonly envName: pulumi.Output<string | undefined>;
38
+ /**
39
+ * Specific event types this webhook subscribes to. If empty, all events are delivered.
40
+ */
41
+ readonly filters: pulumi.Output<string[] | undefined>;
42
+ /**
43
+ * The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams').
44
+ */
45
+ readonly format: pulumi.Output<string | undefined>;
46
+ /**
47
+ * Event groups this webhook subscribes to (e.g., 'stacks', 'deployments').
48
+ */
49
+ readonly groups: pulumi.Output<string[] | undefined>;
50
+ /**
51
+ * HasSecret is true if the webhook has a secret. This is used to determine whether
52
+ * to show that there is a secret in the UI.
53
+ */
54
+ readonly hasSecret: pulumi.Output<boolean>;
55
+ /**
56
+ * The unique identifier name for the webhook within its scope.
57
+ */
58
+ readonly name: pulumi.Output<string>;
59
+ /**
60
+ * The organization that owns this webhook.
61
+ */
62
+ readonly organizationName: pulumi.Output<string>;
63
+ /**
64
+ * The URL to which webhook payloads are delivered.
65
+ */
66
+ readonly payloadUrl: pulumi.Output<string>;
67
+ /**
68
+ * The project name. Set when the webhook is scoped to a specific stack.
69
+ */
70
+ readonly projectName: pulumi.Output<string | undefined>;
71
+ /**
72
+ * Secret will be omitted when returned from the service.
73
+ */
74
+ readonly secret: pulumi.Output<string | undefined>;
75
+ /**
76
+ * SecretCiphertext is the ciphertext value of the webhook's secret.
77
+ * It's used to check whether the secret was changed by the PSP
78
+ */
79
+ readonly secretCiphertext: pulumi.Output<string>;
80
+ /**
81
+ * The stack name. Set when the webhook is scoped to a specific stack.
82
+ */
83
+ readonly stackName: pulumi.Output<string | undefined>;
84
+ /**
85
+ * Create a OrganizationWebhook resource with the given unique name, arguments, and options.
86
+ *
87
+ * @param name The _unique_ name of the resource.
88
+ * @param args The arguments to use to populate this resource's properties.
89
+ * @param opts A bag of options that control this resource's behavior.
90
+ */
91
+ constructor(name: string, args: OrganizationWebhookArgs, opts?: pulumi.CustomResourceOptions);
92
+ }
93
+ /**
94
+ * The set of arguments for constructing a OrganizationWebhook resource.
95
+ */
96
+ export interface OrganizationWebhookArgs {
97
+ /**
98
+ * Whether the webhook is active and will receive deliveries.
99
+ */
100
+ active: pulumi.Input<boolean>;
101
+ /**
102
+ * The human-readable display name shown in the UI.
103
+ */
104
+ displayName: pulumi.Input<string>;
105
+ /**
106
+ * The environment name. Set when the webhook is scoped to a specific environment.
107
+ */
108
+ envName?: pulumi.Input<string | undefined>;
109
+ /**
110
+ * Specific event types this webhook subscribes to. If empty, all events are delivered.
111
+ */
112
+ filters?: pulumi.Input<pulumi.Input<string>[] | undefined>;
113
+ /**
114
+ * The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams').
115
+ */
116
+ format?: pulumi.Input<string | undefined>;
117
+ /**
118
+ * Event groups this webhook subscribes to (e.g., 'stacks', 'deployments').
119
+ */
120
+ groups?: pulumi.Input<pulumi.Input<string>[] | undefined>;
121
+ /**
122
+ * The unique identifier name for the webhook within its scope.
123
+ */
124
+ name: pulumi.Input<string>;
125
+ /**
126
+ * The organization that owns this webhook.
127
+ */
128
+ organizationName: pulumi.Input<string>;
129
+ /**
130
+ * The URL to which webhook payloads are delivered.
131
+ */
132
+ payloadUrl: pulumi.Input<string>;
133
+ /**
134
+ * The project name. Set when the webhook is scoped to a specific stack.
135
+ */
136
+ projectName?: pulumi.Input<string | undefined>;
137
+ /**
138
+ * Secret will be omitted when returned from the service.
139
+ */
140
+ secret?: pulumi.Input<string | undefined>;
141
+ /**
142
+ * The stack name. Set when the webhook is scoped to a specific stack.
143
+ */
144
+ stackName?: pulumi.Input<string | undefined>;
145
+ }
146
+ //# sourceMappingURL=organizationWebhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationWebhook.d.ts","sourceRoot":"","sources":["../../v1/organizationWebhook.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;GAQG;AACH,qBAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,mBAAmB;IAOtH;;;OAGG;WACW,UAAU,CA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K,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD"}
@@ -0,0 +1,128 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.OrganizationWebhook = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Creates a new webhook for an organization to notify external services when events occur. Webhooks can be configured to fire on stack events (created, deleted, update succeeded/failed), deployment events (queued, started, succeeded, failed), drift detection events, and policy violation events (mandatory, advisory).
33
+ *
34
+ * The `format` field accepts: `raw` (default), `slack`, `ms_teams`, or `pulumi_deployments`.
35
+ *
36
+ * The `filters` field accepts a list of event types to subscribe to. See the [webhook event filtering documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#event-filtering) for available filters.
37
+ *
38
+ * The optional `secret` field sets the HMAC key for signature verification via the `Pulumi-Webhook-Signature` header. See the [webhook headers documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#headers) for details.
39
+ */
40
+ class OrganizationWebhook extends pulumi.CustomResource {
41
+ /**
42
+ * Get an existing OrganizationWebhook resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param opts Optional settings to control the behavior of the CustomResource.
48
+ */
49
+ static get(name, id, opts) {
50
+ return new OrganizationWebhook(name, undefined, { ...opts, id: id });
51
+ }
52
+ /** @internal */
53
+ static __pulumiType = 'pulumiservice:v1:OrganizationWebhook';
54
+ /**
55
+ * Returns true if the given object is an instance of OrganizationWebhook. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj) {
59
+ if (obj === undefined || obj === null) {
60
+ return false;
61
+ }
62
+ return obj['__pulumiType'] === OrganizationWebhook.__pulumiType;
63
+ }
64
+ /**
65
+ * Create a OrganizationWebhook resource with the given unique name, arguments, and options.
66
+ *
67
+ * @param name The _unique_ name of the resource.
68
+ * @param args The arguments to use to populate this resource's properties.
69
+ * @param opts A bag of options that control this resource's behavior.
70
+ */
71
+ constructor(name, args, opts) {
72
+ let resourceInputs = {};
73
+ opts = opts || {};
74
+ if (!opts.id) {
75
+ if (args?.active === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'active'");
77
+ }
78
+ if (args?.displayName === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'displayName'");
80
+ }
81
+ if (args?.name === undefined && !opts.urn) {
82
+ throw new Error("Missing required property 'name'");
83
+ }
84
+ if (args?.organizationName === undefined && !opts.urn) {
85
+ throw new Error("Missing required property 'organizationName'");
86
+ }
87
+ if (args?.payloadUrl === undefined && !opts.urn) {
88
+ throw new Error("Missing required property 'payloadUrl'");
89
+ }
90
+ resourceInputs["active"] = args?.active;
91
+ resourceInputs["displayName"] = args?.displayName;
92
+ resourceInputs["envName"] = args?.envName;
93
+ resourceInputs["filters"] = args?.filters;
94
+ resourceInputs["format"] = args?.format;
95
+ resourceInputs["groups"] = args?.groups;
96
+ resourceInputs["name"] = args?.name;
97
+ resourceInputs["organizationName"] = args?.organizationName;
98
+ resourceInputs["payloadUrl"] = args?.payloadUrl;
99
+ resourceInputs["projectName"] = args?.projectName;
100
+ resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined;
101
+ resourceInputs["stackName"] = args?.stackName;
102
+ resourceInputs["hasSecret"] = undefined /*out*/;
103
+ resourceInputs["secretCiphertext"] = undefined /*out*/;
104
+ }
105
+ else {
106
+ resourceInputs["active"] = undefined /*out*/;
107
+ resourceInputs["displayName"] = undefined /*out*/;
108
+ resourceInputs["envName"] = undefined /*out*/;
109
+ resourceInputs["filters"] = undefined /*out*/;
110
+ resourceInputs["format"] = undefined /*out*/;
111
+ resourceInputs["groups"] = undefined /*out*/;
112
+ resourceInputs["hasSecret"] = undefined /*out*/;
113
+ resourceInputs["name"] = undefined /*out*/;
114
+ resourceInputs["organizationName"] = undefined /*out*/;
115
+ resourceInputs["payloadUrl"] = undefined /*out*/;
116
+ resourceInputs["projectName"] = undefined /*out*/;
117
+ resourceInputs["secret"] = undefined /*out*/;
118
+ resourceInputs["secretCiphertext"] = undefined /*out*/;
119
+ resourceInputs["stackName"] = undefined /*out*/;
120
+ }
121
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
122
+ const secretOpts = { additionalSecretOutputs: ["hasSecret", "secret", "secretCiphertext"] };
123
+ opts = pulumi.mergeOptions(opts, secretOpts);
124
+ super(OrganizationWebhook.__pulumiType, name, resourceInputs, opts);
125
+ }
126
+ }
127
+ exports.OrganizationWebhook = OrganizationWebhook;
128
+ //# sourceMappingURL=organizationWebhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationWebhook.js","sourceRoot":"","sources":["../../v1/organizationWebhook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AAI,CAAC,CAAC;IACxE,CAAC;;AAlJL,kDAmJC"}
@@ -0,0 +1,86 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Creates a new Policy Group for an organization. Policy Groups define which Policy Packs are enforced on which stacks or cloud accounts, with configurable enforcement levels (advisory, mandatory, or disabled) per pack. This allows different policy strictness for different environments, such as advisory-only in development and mandatory in production.
4
+ */
5
+ export declare class PolicyGroup extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing PolicyGroup 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 opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): PolicyGroup;
15
+ /**
16
+ * Returns true if the given object is an instance of PolicyGroup. 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: any): obj is PolicyGroup;
20
+ /**
21
+ * List of Insights account names that are members of this policy group.
22
+ */
23
+ readonly accounts: pulumi.Output<string[]>;
24
+ /**
25
+ * Agent pool ID for audit policy evaluation. Defaults to Pulumi hosted pool if not specified.
26
+ */
27
+ readonly agentPoolId: pulumi.Output<string | undefined>;
28
+ /**
29
+ * List of policy packs that are applied to this policy group.
30
+ */
31
+ readonly appliedPolicyPacks: pulumi.Output<any[]>;
32
+ /**
33
+ * The type of entities this policy group applies to (stacks or accounts).
34
+ */
35
+ readonly entityType: pulumi.Output<string>;
36
+ /**
37
+ * True if this is either the default stacks or default accounts policy group for the organization.
38
+ */
39
+ readonly isOrgDefault: pulumi.Output<boolean>;
40
+ /**
41
+ * The enforcement mode for the policy group (audit or preventative).
42
+ */
43
+ readonly mode: pulumi.Output<string>;
44
+ /**
45
+ * The name of the policy group.
46
+ */
47
+ readonly name: pulumi.Output<string>;
48
+ /**
49
+ * List of stacks that are members of this policy group.
50
+ */
51
+ readonly stacks: pulumi.Output<any[]>;
52
+ /**
53
+ * Create a PolicyGroup resource with the given unique name, arguments, and options.
54
+ *
55
+ * @param name The _unique_ name of the resource.
56
+ * @param args The arguments to use to populate this resource's properties.
57
+ * @param opts A bag of options that control this resource's behavior.
58
+ */
59
+ constructor(name: string, args: PolicyGroupArgs, opts?: pulumi.CustomResourceOptions);
60
+ }
61
+ /**
62
+ * The set of arguments for constructing a PolicyGroup resource.
63
+ */
64
+ export interface PolicyGroupArgs {
65
+ /**
66
+ * Agent pool ID for policy evaluation. Defaults to Pulumi hosted pool if not specified.
67
+ */
68
+ agentPoolId?: pulumi.Input<string | undefined>;
69
+ /**
70
+ * The type of entities this policy group applies to (stacks or accounts).
71
+ */
72
+ entityType: pulumi.Input<string>;
73
+ /**
74
+ * The enforcement mode for the policy group (audit or preventative). Defaults to 'audit' for account policy groups, 'preventative' for stack policy groups.
75
+ */
76
+ mode?: pulumi.Input<string | undefined>;
77
+ /**
78
+ * The name of the new policy group.
79
+ */
80
+ name: pulumi.Input<string>;
81
+ /**
82
+ * The organization name
83
+ */
84
+ orgName: pulumi.Input<string>;
85
+ }
86
+ //# sourceMappingURL=policyGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyGroup.d.ts","sourceRoot":"","sources":["../../v1/policyGroup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,WAAW;IAO9G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW;IAOtD;;OAEG;IACH,SAA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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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.PolicyGroup = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Creates a new Policy Group for an organization. Policy Groups define which Policy Packs are enforced on which stacks or cloud accounts, with configurable enforcement levels (advisory, mandatory, or disabled) per pack. This allows different policy strictness for different environments, such as advisory-only in development and mandatory in production.
33
+ */
34
+ class PolicyGroup extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing PolicyGroup resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, opts) {
44
+ return new PolicyGroup(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'pulumiservice:v1:PolicyGroup';
48
+ /**
49
+ * Returns true if the given object is an instance of PolicyGroup. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === PolicyGroup.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a PolicyGroup resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name, args, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if (args?.entityType === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'entityType'");
71
+ }
72
+ if (args?.name === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'name'");
74
+ }
75
+ if (args?.orgName === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'orgName'");
77
+ }
78
+ resourceInputs["agentPoolId"] = args?.agentPoolId;
79
+ resourceInputs["entityType"] = args?.entityType;
80
+ resourceInputs["mode"] = args?.mode;
81
+ resourceInputs["name"] = args?.name;
82
+ resourceInputs["orgName"] = args?.orgName;
83
+ resourceInputs["accounts"] = undefined /*out*/;
84
+ resourceInputs["appliedPolicyPacks"] = undefined /*out*/;
85
+ resourceInputs["isOrgDefault"] = undefined /*out*/;
86
+ resourceInputs["stacks"] = undefined /*out*/;
87
+ }
88
+ else {
89
+ resourceInputs["accounts"] = undefined /*out*/;
90
+ resourceInputs["agentPoolId"] = undefined /*out*/;
91
+ resourceInputs["appliedPolicyPacks"] = undefined /*out*/;
92
+ resourceInputs["entityType"] = undefined /*out*/;
93
+ resourceInputs["isOrgDefault"] = undefined /*out*/;
94
+ resourceInputs["mode"] = undefined /*out*/;
95
+ resourceInputs["name"] = undefined /*out*/;
96
+ resourceInputs["stacks"] = undefined /*out*/;
97
+ }
98
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
99
+ super(PolicyGroup.__pulumiType, name, resourceInputs, opts);
100
+ }
101
+ }
102
+ exports.PolicyGroup = PolicyGroup;
103
+ //# sourceMappingURL=policyGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyGroup.js","sourceRoot":"","sources":["../../v1/policyGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;GAEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8BAA8B,CAAC;IAErE;;;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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmCD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAqB,EAAE,IAAmC;QAChF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,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