@pulumi/pulumiservice 0.39.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.
- package/accessToken.d.ts +2 -1
- package/accessToken.d.ts.map +1 -0
- package/accessToken.js +30 -5
- package/accessToken.js.map +1 -1
- package/agentPool.d.ts +5 -4
- package/agentPool.d.ts.map +1 -0
- package/agentPool.js +30 -5
- package/agentPool.js.map +1 -1
- package/approvalRule.d.ts +1 -0
- package/approvalRule.d.ts.map +1 -0
- package/approvalRule.js +27 -4
- package/approvalRule.js.map +1 -1
- package/buildAllowPermissions.d.ts +30 -0
- package/buildAllowPermissions.d.ts.map +1 -0
- package/buildAllowPermissions.js +51 -0
- package/buildAllowPermissions.js.map +1 -0
- package/buildEnvironmentScopedPermissions.d.ts +4 -3
- package/buildEnvironmentScopedPermissions.d.ts.map +1 -0
- package/buildEnvironmentScopedPermissions.js +27 -4
- package/buildEnvironmentScopedPermissions.js.map +1 -1
- package/buildInsightsAccountScopedPermissions.d.ts +4 -3
- package/buildInsightsAccountScopedPermissions.d.ts.map +1 -0
- package/buildInsightsAccountScopedPermissions.js +27 -4
- package/buildInsightsAccountScopedPermissions.js.map +1 -1
- package/buildStackScopedPermissions.d.ts +4 -3
- package/buildStackScopedPermissions.d.ts.map +1 -0
- package/buildStackScopedPermissions.js +27 -4
- package/buildStackScopedPermissions.js.map +1 -1
- package/config/index.d.ts +1 -0
- package/config/index.d.ts.map +1 -0
- package/config/vars.d.ts +1 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +26 -3
- package/config/vars.js.map +1 -1
- package/deploymentSchedule.d.ts +4 -3
- package/deploymentSchedule.d.ts.map +1 -0
- package/deploymentSchedule.js +29 -4
- package/deploymentSchedule.js.map +1 -1
- package/deploymentSettings.d.ts +8 -7
- package/deploymentSettings.d.ts.map +1 -0
- package/deploymentSettings.js +31 -8
- package/deploymentSettings.js.map +1 -1
- package/driftSchedule.d.ts +2 -1
- package/driftSchedule.d.ts.map +1 -0
- package/driftSchedule.js +29 -4
- package/driftSchedule.js.map +1 -1
- package/environment.d.ts +3 -2
- package/environment.d.ts.map +1 -0
- package/environment.js +27 -4
- package/environment.js.map +1 -1
- package/environmentRotationSchedule.d.ts +3 -2
- package/environmentRotationSchedule.d.ts.map +1 -0
- package/environmentRotationSchedule.js +29 -4
- package/environmentRotationSchedule.js.map +1 -1
- package/environmentVersionTag.d.ts +2 -1
- package/environmentVersionTag.d.ts.map +1 -0
- package/environmentVersionTag.js +27 -4
- package/environmentVersionTag.js.map +1 -1
- package/getCurrentUser.d.ts +1 -0
- package/getCurrentUser.d.ts.map +1 -0
- package/getCurrentUser.js +25 -2
- package/getCurrentUser.js.map +1 -1
- package/getEnvironment.d.ts +5 -4
- package/getEnvironment.d.ts.map +1 -0
- package/getEnvironment.js +27 -4
- package/getEnvironment.js.map +1 -1
- package/getInsightsAccount.d.ts +1 -0
- package/getInsightsAccount.d.ts.map +1 -0
- package/getInsightsAccount.js +25 -2
- package/getInsightsAccount.js.map +1 -1
- package/getInsightsAccounts.d.ts +1 -0
- package/getInsightsAccounts.d.ts.map +1 -0
- package/getInsightsAccounts.js +25 -2
- package/getInsightsAccounts.js.map +1 -1
- package/getOrganizationMember.d.ts +1 -0
- package/getOrganizationMember.d.ts.map +1 -0
- package/getOrganizationMember.js +25 -2
- package/getOrganizationMember.js.map +1 -1
- package/getOrganizationMembers.d.ts +3 -2
- package/getOrganizationMembers.d.ts.map +1 -0
- package/getOrganizationMembers.js +27 -4
- package/getOrganizationMembers.js.map +1 -1
- package/getOrganizationRoleScopes.d.ts +1 -0
- package/getOrganizationRoleScopes.d.ts.map +1 -0
- package/getOrganizationRoleScopes.js +25 -2
- package/getOrganizationRoleScopes.js.map +1 -1
- package/getPolicyPack.d.ts +2 -1
- package/getPolicyPack.d.ts.map +1 -0
- package/getPolicyPack.js +25 -2
- package/getPolicyPack.js.map +1 -1
- package/getPolicyPacks.d.ts +1 -0
- package/getPolicyPacks.d.ts.map +1 -0
- package/getPolicyPacks.js +25 -2
- package/getPolicyPacks.js.map +1 -1
- package/index.d.ts +6 -1
- package/index.d.ts.map +1 -0
- package/index.js +23 -6
- package/index.js.map +1 -1
- package/insightsAccount.d.ts +3 -2
- package/insightsAccount.d.ts.map +1 -0
- package/insightsAccount.js +27 -4
- package/insightsAccount.js.map +1 -1
- package/oidcIssuer.d.ts +4 -3
- package/oidcIssuer.d.ts.map +1 -0
- package/oidcIssuer.js +27 -4
- package/oidcIssuer.js.map +1 -1
- package/orgAccessToken.d.ts +4 -3
- package/orgAccessToken.d.ts.map +1 -0
- package/orgAccessToken.js +29 -4
- package/orgAccessToken.js.map +1 -1
- package/organizationMember.d.ts +3 -2
- package/organizationMember.d.ts.map +1 -0
- package/organizationMember.js +27 -4
- package/organizationMember.js.map +1 -1
- package/organizationRole.d.ts +29 -4
- package/organizationRole.d.ts.map +1 -0
- package/organizationRole.js +27 -4
- package/organizationRole.js.map +1 -1
- package/package.json +4 -4
- package/policyGroup.d.ts +6 -5
- package/policyGroup.d.ts.map +1 -0
- package/policyGroup.js +27 -4
- package/policyGroup.js.map +1 -1
- package/provider.d.ts +3 -2
- package/provider.d.ts.map +1 -0
- package/provider.js +28 -5
- package/provider.js.map +1 -1
- package/stack.d.ts +2 -1
- package/stack.d.ts.map +1 -0
- package/stack.js +27 -4
- package/stack.js.map +1 -1
- package/stackTag.d.ts +1 -0
- package/stackTag.d.ts.map +1 -0
- package/stackTag.js +27 -4
- package/stackTag.js.map +1 -1
- package/stackTags.d.ts +1 -0
- package/stackTags.d.ts.map +1 -0
- package/stackTags.js +27 -4
- package/stackTags.js.map +1 -1
- package/team.d.ts +6 -5
- package/team.d.ts.map +1 -0
- package/team.js +27 -4
- package/team.js.map +1 -1
- package/teamAccessToken.d.ts +3 -2
- package/teamAccessToken.d.ts.map +1 -0
- package/teamAccessToken.js +29 -4
- package/teamAccessToken.js.map +1 -1
- package/teamEnvironmentPermission.d.ts +7 -6
- package/teamEnvironmentPermission.d.ts.map +1 -0
- package/teamEnvironmentPermission.js +29 -4
- package/teamEnvironmentPermission.js.map +1 -1
- package/teamRoleAssignment.d.ts +1 -0
- package/teamRoleAssignment.d.ts.map +1 -0
- package/teamRoleAssignment.js +27 -4
- package/teamRoleAssignment.js.map +1 -1
- package/teamStackPermission.d.ts +2 -1
- package/teamStackPermission.d.ts.map +1 -0
- package/teamStackPermission.js +29 -4
- package/teamStackPermission.js.map +1 -1
- package/templateSource.d.ts +3 -2
- package/templateSource.d.ts.map +1 -0
- package/templateSource.js +30 -5
- package/templateSource.js.map +1 -1
- package/ttlSchedule.d.ts +2 -1
- package/ttlSchedule.d.ts.map +1 -0
- package/ttlSchedule.js +29 -4
- package/ttlSchedule.js.map +1 -1
- package/types/enums/index.d.ts +1 -0
- package/types/enums/index.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +26 -3
- package/types/index.js.map +1 -1
- package/types/input.d.ts +52 -47
- package/types/input.d.ts.map +1 -0
- package/types/input.js.map +1 -1
- package/types/output.d.ts +5 -0
- package/types/output.d.ts.map +1 -0
- package/types/output.js.map +1 -1
- package/utilities.d.ts +1 -0
- package/utilities.d.ts.map +1 -0
- package/utilities.js +24 -1
- package/utilities.js.map +1 -1
- package/v1/agents/index.d.ts +7 -0
- package/v1/agents/index.d.ts.map +1 -0
- package/v1/agents/index.js +49 -0
- package/v1/agents/index.js.map +1 -0
- package/v1/agents/pool.d.ts +74 -0
- package/v1/agents/pool.d.ts.map +1 -0
- package/v1/agents/pool.js +101 -0
- package/v1/agents/pool.js.map +1 -0
- package/v1/agents/task.d.ts +158 -0
- package/v1/agents/task.d.ts.map +1 -0
- package/v1/agents/task.js +127 -0
- package/v1/agents/task.js.map +1 -0
- package/v1/auditLogExportConfiguration.d.ts +58 -0
- package/v1/auditLogExportConfiguration.d.ts.map +1 -0
- package/v1/auditLogExportConfiguration.js +95 -0
- package/v1/auditLogExportConfiguration.js.map +1 -0
- package/v1/auth/index.d.ts +10 -0
- package/v1/auth/index.d.ts.map +1 -0
- package/v1/auth/index.js +53 -0
- package/v1/auth/index.js.map +1 -0
- package/v1/auth/oidcIssuer.d.ts +102 -0
- package/v1/auth/oidcIssuer.d.ts.map +1 -0
- package/v1/auth/oidcIssuer.js +107 -0
- package/v1/auth/oidcIssuer.js.map +1 -0
- package/v1/auth/policy.d.ts +81 -0
- package/v1/auth/policy.d.ts.map +1 -0
- package/v1/auth/policy.js +109 -0
- package/v1/auth/policy.js.map +1 -0
- package/v1/auth/saml.d.ts +72 -0
- package/v1/auth/saml.d.ts.map +1 -0
- package/v1/auth/saml.js +96 -0
- package/v1/auth/saml.js.map +1 -0
- package/v1/defaultOrganization.d.ts +50 -0
- package/v1/defaultOrganization.d.ts.map +1 -0
- package/v1/defaultOrganization.js +85 -0
- package/v1/defaultOrganization.js.map +1 -0
- package/v1/deployments/index.d.ts +7 -0
- package/v1/deployments/index.d.ts.map +1 -0
- package/v1/deployments/index.js +49 -0
- package/v1/deployments/index.js.map +1 -0
- package/v1/deployments/scheduledDeployment.d.ts +108 -0
- package/v1/deployments/scheduledDeployment.d.ts.map +1 -0
- package/v1/deployments/scheduledDeployment.js +112 -0
- package/v1/deployments/scheduledDeployment.js.map +1 -0
- package/v1/deployments/settings.d.ts +118 -0
- package/v1/deployments/settings.d.ts.map +1 -0
- package/v1/deployments/settings.js +109 -0
- package/v1/deployments/settings.js.map +1 -0
- package/v1/esc/environment.d.ts +54 -0
- package/v1/esc/environment.d.ts.map +1 -0
- package/v1/esc/environment.js +93 -0
- package/v1/esc/environment.js.map +1 -0
- package/v1/esc/environmentDraft.d.ts +62 -0
- package/v1/esc/environmentDraft.d.ts.map +1 -0
- package/v1/esc/environmentDraft.js +97 -0
- package/v1/esc/environmentDraft.js.map +1 -0
- package/v1/esc/environmentSchedule.d.ts +108 -0
- package/v1/esc/environmentSchedule.d.ts.map +1 -0
- package/v1/esc/environmentSchedule.js +112 -0
- package/v1/esc/environmentSchedule.js.map +1 -0
- package/v1/esc/environmentSettings.d.ts +54 -0
- package/v1/esc/environmentSettings.d.ts.map +1 -0
- package/v1/esc/environmentSettings.js +91 -0
- package/v1/esc/environmentSettings.js.map +1 -0
- package/v1/esc/environmentTag.d.ts +78 -0
- package/v1/esc/environmentTag.d.ts.map +1 -0
- package/v1/esc/environmentTag.js +107 -0
- package/v1/esc/environmentTag.js.map +1 -0
- package/v1/esc/index.d.ts +25 -0
- package/v1/esc/index.d.ts.map +1 -0
- package/v1/esc/index.js +73 -0
- package/v1/esc/index.js.map +1 -0
- package/v1/esc/openEnvironmentRequest.d.ts +66 -0
- package/v1/esc/openEnvironmentRequest.d.ts.map +1 -0
- package/v1/esc/openEnvironmentRequest.js +100 -0
- package/v1/esc/openEnvironmentRequest.js.map +1 -0
- package/v1/esc/revisionTag.d.ts +78 -0
- package/v1/esc/revisionTag.d.ts.map +1 -0
- package/v1/esc/revisionTag.js +104 -0
- package/v1/esc/revisionTag.js.map +1 -0
- package/v1/esc/webhook.d.ts +140 -0
- package/v1/esc/webhook.d.ts.map +1 -0
- package/v1/esc/webhook.js +128 -0
- package/v1/esc/webhook.js.map +1 -0
- package/v1/gate.d.ts +78 -0
- package/v1/gate.d.ts.map +1 -0
- package/v1/gate.js +103 -0
- package/v1/gate.js.map +1 -0
- package/v1/index.d.ts +36 -0
- package/v1/index.d.ts.map +1 -0
- package/v1/index.js +94 -0
- package/v1/index.js.map +1 -0
- package/v1/insights/account.d.ts +110 -0
- package/v1/insights/account.d.ts.map +1 -0
- package/v1/insights/account.js +112 -0
- package/v1/insights/account.js.map +1 -0
- package/v1/insights/index.d.ts +7 -0
- package/v1/insights/index.d.ts.map +1 -0
- package/v1/insights/index.js +49 -0
- package/v1/insights/index.js.map +1 -0
- package/v1/insights/scheduledScanSettings.d.ts +90 -0
- package/v1/insights/scheduledScanSettings.d.ts.map +1 -0
- package/v1/insights/scheduledScanSettings.js +100 -0
- package/v1/insights/scheduledScanSettings.js.map +1 -0
- package/v1/integrations/azureDevOpsIntegration.d.ts +86 -0
- package/v1/integrations/azureDevOpsIntegration.d.ts.map +1 -0
- package/v1/integrations/azureDevOpsIntegration.js +101 -0
- package/v1/integrations/azureDevOpsIntegration.js.map +1 -0
- package/v1/integrations/bitBucketIntegration.d.ts +98 -0
- package/v1/integrations/bitBucketIntegration.d.ts.map +1 -0
- package/v1/integrations/bitBucketIntegration.js +107 -0
- package/v1/integrations/bitBucketIntegration.js.map +1 -0
- package/v1/integrations/customVCSIntegration.d.ts +98 -0
- package/v1/integrations/customVCSIntegration.d.ts.map +1 -0
- package/v1/integrations/customVCSIntegration.js +112 -0
- package/v1/integrations/customVCSIntegration.js.map +1 -0
- package/v1/integrations/customVCSRepository.d.ts +50 -0
- package/v1/integrations/customVCSRepository.d.ts.map +1 -0
- package/v1/integrations/customVCSRepository.js +90 -0
- package/v1/integrations/customVCSRepository.js.map +1 -0
- package/v1/integrations/gitHubEnterpriseIntegration.d.ts +118 -0
- package/v1/integrations/gitHubEnterpriseIntegration.d.ts.map +1 -0
- package/v1/integrations/gitHubEnterpriseIntegration.js +115 -0
- package/v1/integrations/gitHubEnterpriseIntegration.js.map +1 -0
- package/v1/integrations/gitHubIntegration.d.ts +118 -0
- package/v1/integrations/gitHubIntegration.d.ts.map +1 -0
- package/v1/integrations/gitHubIntegration.js +115 -0
- package/v1/integrations/gitHubIntegration.js.map +1 -0
- package/v1/integrations/gitLabIntegration.d.ts +102 -0
- package/v1/integrations/gitLabIntegration.d.ts.map +1 -0
- package/v1/integrations/gitLabIntegration.js +111 -0
- package/v1/integrations/gitLabIntegration.js.map +1 -0
- package/v1/integrations/index.d.ts +22 -0
- package/v1/integrations/index.d.ts.map +1 -0
- package/v1/integrations/index.js +69 -0
- package/v1/integrations/index.js.map +1 -0
- package/v1/orgTemplateCollection.d.ts +82 -0
- package/v1/orgTemplateCollection.d.ts.map +1 -0
- package/v1/orgTemplateCollection.js +101 -0
- package/v1/orgTemplateCollection.js.map +1 -0
- package/v1/organizationMember.d.ts +79 -0
- package/v1/organizationMember.d.ts.map +1 -0
- package/v1/organizationMember.js +106 -0
- package/v1/organizationMember.js.map +1 -0
- package/v1/organizationWebhook.d.ts +146 -0
- package/v1/organizationWebhook.d.ts.map +1 -0
- package/v1/organizationWebhook.js +128 -0
- package/v1/organizationWebhook.js.map +1 -0
- package/v1/policyGroup.d.ts +86 -0
- package/v1/policyGroup.d.ts.map +1 -0
- package/v1/policyGroup.js +103 -0
- package/v1/policyGroup.js.map +1 -0
- package/v1/role.d.ts +114 -0
- package/v1/role.d.ts.map +1 -0
- package/v1/role.js +106 -0
- package/v1/role.js.map +1 -0
- package/v1/services/index.d.ts +7 -0
- package/v1/services/index.d.ts.map +1 -0
- package/v1/services/index.js +49 -0
- package/v1/services/index.js.map +1 -0
- package/v1/services/item.d.ts +67 -0
- package/v1/services/item.d.ts.map +1 -0
- package/v1/services/item.js +102 -0
- package/v1/services/item.js.map +1 -0
- package/v1/services/service.d.ts +71 -0
- package/v1/services/service.d.ts.map +1 -0
- package/v1/services/service.js +108 -0
- package/v1/services/service.js.map +1 -0
- package/v1/stacks/config.d.ts +78 -0
- package/v1/stacks/config.d.ts.map +1 -0
- package/v1/stacks/config.js +102 -0
- package/v1/stacks/config.js.map +1 -0
- package/v1/stacks/index.d.ts +13 -0
- package/v1/stacks/index.d.ts.map +1 -0
- package/v1/stacks/index.js +57 -0
- package/v1/stacks/index.js.map +1 -0
- package/v1/stacks/stack.d.ts +105 -0
- package/v1/stacks/stack.d.ts.map +1 -0
- package/v1/stacks/stack.js +110 -0
- package/v1/stacks/stack.js.map +1 -0
- package/v1/stacks/tag.d.ts +54 -0
- package/v1/stacks/tag.d.ts.map +1 -0
- package/v1/stacks/tag.js +97 -0
- package/v1/stacks/tag.js.map +1 -0
- package/v1/stacks/webhook.d.ts +148 -0
- package/v1/stacks/webhook.d.ts.map +1 -0
- package/v1/stacks/webhook.js +136 -0
- package/v1/stacks/webhook.js.map +1 -0
- package/v1/teams/index.d.ts +7 -0
- package/v1/teams/index.d.ts.map +1 -0
- package/v1/teams/index.js +49 -0
- package/v1/teams/index.js.map +1 -0
- package/v1/teams/role.d.ts +47 -0
- package/v1/teams/role.d.ts.map +1 -0
- package/v1/teams/role.js +90 -0
- package/v1/teams/role.js.map +1 -0
- package/v1/teams/team.d.ts +98 -0
- package/v1/teams/team.d.ts.map +1 -0
- package/v1/teams/team.js +113 -0
- package/v1/teams/team.js.map +1 -0
- package/v1/tokens/index.d.ts +10 -0
- package/v1/tokens/index.d.ts.map +1 -0
- package/v1/tokens/index.js +53 -0
- package/v1/tokens/index.js.map +1 -0
- package/v1/tokens/orgToken.d.ts +74 -0
- package/v1/tokens/orgToken.d.ts.map +1 -0
- package/v1/tokens/orgToken.js +109 -0
- package/v1/tokens/orgToken.js.map +1 -0
- package/v1/tokens/personalToken.d.ts +54 -0
- package/v1/tokens/personalToken.d.ts.map +1 -0
- package/v1/tokens/personalToken.js +92 -0
- package/v1/tokens/personalToken.js.map +1 -0
- package/v1/tokens/teamToken.d.ts +70 -0
- package/v1/tokens/teamToken.d.ts.map +1 -0
- package/v1/tokens/teamToken.js +108 -0
- package/v1/tokens/teamToken.js.map +1 -0
- package/webhook.d.ts +8 -7
- package/webhook.d.ts.map +1 -0
- package/webhook.js +27 -4
- package/webhook.js.map +1 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new webhook for the specified stack. The request body must include the webhook name, payload URL, and format.
|
|
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. See the [webhook headers documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#headers) for details.
|
|
10
|
+
*
|
|
11
|
+
* Returns 409 if a webhook with the same name already exists. Returns 400 if the organization or stack name in the request body does not match the URL path parameters.
|
|
12
|
+
*/
|
|
13
|
+
export declare class Webhook extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Webhook resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Webhook;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Webhook. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj: any): obj is Webhook;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the webhook is active and will receive deliveries.
|
|
30
|
+
*/
|
|
31
|
+
readonly active: pulumi.Output<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* The human-readable display name shown in the UI.
|
|
34
|
+
*/
|
|
35
|
+
readonly displayName: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The environment name. Set when the webhook is scoped to a specific environment.
|
|
38
|
+
*/
|
|
39
|
+
readonly envName: pulumi.Output<string | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Specific event types this webhook subscribes to. If empty, all events are delivered.
|
|
42
|
+
*/
|
|
43
|
+
readonly filters: pulumi.Output<string[] | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams').
|
|
46
|
+
*/
|
|
47
|
+
readonly format: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Event groups this webhook subscribes to (e.g., 'stacks', 'deployments').
|
|
50
|
+
*/
|
|
51
|
+
readonly groups: pulumi.Output<string[] | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* HasSecret is true if the webhook has a secret. This is used to determine whether
|
|
54
|
+
* to show that there is a secret in the UI.
|
|
55
|
+
*/
|
|
56
|
+
readonly hasSecret: pulumi.Output<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* The unique identifier name for the webhook within its scope.
|
|
59
|
+
*/
|
|
60
|
+
readonly name: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The organization that owns this webhook.
|
|
63
|
+
*/
|
|
64
|
+
readonly organizationName: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The URL to which webhook payloads are delivered.
|
|
67
|
+
*/
|
|
68
|
+
readonly payloadUrl: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The project name. Set when the webhook is scoped to a specific stack.
|
|
71
|
+
*/
|
|
72
|
+
readonly projectName: pulumi.Output<string | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* Secret will be omitted when returned from the service.
|
|
75
|
+
*/
|
|
76
|
+
readonly secret: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* SecretCiphertext is the ciphertext value of the webhook's secret.
|
|
79
|
+
* It's used to check whether the secret was changed by the PSP
|
|
80
|
+
*/
|
|
81
|
+
readonly secretCiphertext: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The stack name. Set when the webhook is scoped to a specific stack.
|
|
84
|
+
*/
|
|
85
|
+
readonly stackName: pulumi.Output<string | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a Webhook resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: WebhookArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The set of arguments for constructing a Webhook resource.
|
|
97
|
+
*/
|
|
98
|
+
export interface WebhookArgs {
|
|
99
|
+
/**
|
|
100
|
+
* Whether the webhook is active and will receive deliveries.
|
|
101
|
+
*/
|
|
102
|
+
active: pulumi.Input<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* The human-readable display name shown in the UI.
|
|
105
|
+
*/
|
|
106
|
+
displayName: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The environment name. Set when the webhook is scoped to a specific environment.
|
|
109
|
+
*/
|
|
110
|
+
envName?: pulumi.Input<string | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Specific event types this webhook subscribes to. If empty, all events are delivered.
|
|
113
|
+
*/
|
|
114
|
+
filters?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams').
|
|
117
|
+
*/
|
|
118
|
+
format?: pulumi.Input<string | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Event groups this webhook subscribes to (e.g., 'stacks', 'deployments').
|
|
121
|
+
*/
|
|
122
|
+
groups?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* The unique identifier name for the webhook within its scope.
|
|
125
|
+
*/
|
|
126
|
+
name: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The organization that owns this webhook.
|
|
129
|
+
*/
|
|
130
|
+
organizationName: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The URL to which webhook payloads are delivered.
|
|
133
|
+
*/
|
|
134
|
+
payloadUrl: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The project name. Set when the webhook is scoped to a specific stack.
|
|
137
|
+
*/
|
|
138
|
+
projectName: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Secret will be omitted when returned from the service.
|
|
141
|
+
*/
|
|
142
|
+
secret?: pulumi.Input<string | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* The stack name. Set when the webhook is scoped to a specific stack.
|
|
145
|
+
*/
|
|
146
|
+
stackName: pulumi.Input<string>;
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=webhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../v1/stacks/webhook.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;GAUG;AACH,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;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,OAAO;IAO1G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,OAAO;IAOlD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IACrE;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG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ACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
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.Webhook = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new webhook for the specified stack. The request body must include the webhook name, payload URL, and format.
|
|
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. See the [webhook headers documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#headers) for details.
|
|
39
|
+
*
|
|
40
|
+
* Returns 409 if a webhook with the same name already exists. Returns 400 if the organization or stack name in the request body does not match the URL path parameters.
|
|
41
|
+
*/
|
|
42
|
+
class Webhook extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing Webhook resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name, id, opts) {
|
|
52
|
+
return new Webhook(name, undefined, { ...opts, id: id });
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
static __pulumiType = 'pulumiservice:v1/stacks:Webhook';
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of Webhook. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === Webhook.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Create a Webhook resource with the given unique name, arguments, and options.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resource.
|
|
70
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
71
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
72
|
+
*/
|
|
73
|
+
constructor(name, args, opts) {
|
|
74
|
+
let resourceInputs = {};
|
|
75
|
+
opts = opts || {};
|
|
76
|
+
if (!opts.id) {
|
|
77
|
+
if (args?.active === undefined && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'active'");
|
|
79
|
+
}
|
|
80
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
81
|
+
throw new Error("Missing required property 'displayName'");
|
|
82
|
+
}
|
|
83
|
+
if (args?.name === undefined && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'name'");
|
|
85
|
+
}
|
|
86
|
+
if (args?.organizationName === undefined && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'organizationName'");
|
|
88
|
+
}
|
|
89
|
+
if (args?.payloadUrl === undefined && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'payloadUrl'");
|
|
91
|
+
}
|
|
92
|
+
if (args?.projectName === undefined && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'projectName'");
|
|
94
|
+
}
|
|
95
|
+
if (args?.stackName === undefined && !opts.urn) {
|
|
96
|
+
throw new Error("Missing required property 'stackName'");
|
|
97
|
+
}
|
|
98
|
+
resourceInputs["active"] = args?.active;
|
|
99
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
100
|
+
resourceInputs["envName"] = args?.envName;
|
|
101
|
+
resourceInputs["filters"] = args?.filters;
|
|
102
|
+
resourceInputs["format"] = args?.format;
|
|
103
|
+
resourceInputs["groups"] = args?.groups;
|
|
104
|
+
resourceInputs["name"] = args?.name;
|
|
105
|
+
resourceInputs["organizationName"] = args?.organizationName;
|
|
106
|
+
resourceInputs["payloadUrl"] = args?.payloadUrl;
|
|
107
|
+
resourceInputs["projectName"] = args?.projectName;
|
|
108
|
+
resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined;
|
|
109
|
+
resourceInputs["stackName"] = args?.stackName;
|
|
110
|
+
resourceInputs["hasSecret"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["secretCiphertext"] = undefined /*out*/;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
resourceInputs["active"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["envName"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["filters"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["format"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["groups"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["hasSecret"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["organizationName"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["payloadUrl"] = undefined /*out*/;
|
|
124
|
+
resourceInputs["projectName"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["secret"] = undefined /*out*/;
|
|
126
|
+
resourceInputs["secretCiphertext"] = undefined /*out*/;
|
|
127
|
+
resourceInputs["stackName"] = undefined /*out*/;
|
|
128
|
+
}
|
|
129
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
130
|
+
const secretOpts = { additionalSecretOutputs: ["hasSecret", "secret", "secretCiphertext"] };
|
|
131
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
132
|
+
super(Webhook.__pulumiType, name, resourceInputs, opts);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.Webhook = Webhook;
|
|
136
|
+
//# sourceMappingURL=webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../v1/stacks/webhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,2DAA6C;AAE7C;;;;;;;;;;GAUG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,iCAAiC,CAAC;IAExE;;;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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA6DD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAmC;QAC5E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,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3C,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,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,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,kBAAkB,CAAC,EAAE,CAAC;QAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAxJL,0BAyJC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { RoleArgs } from "./role";
|
|
2
|
+
export type Role = import("./role").Role;
|
|
3
|
+
export declare const Role: typeof import("./role").Role;
|
|
4
|
+
export { TeamArgs } from "./team";
|
|
5
|
+
export type Team = import("./team").Team;
|
|
6
|
+
export declare const Team: typeof import("./team").Team;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v1/teams/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,MAAM,MAAM,IAAI,GAAG,OAAO,QAAQ,EAAE,IAAI,CAAC;AACzC,eAAO,MAAM,IAAI,EAAE,cAAc,QAAQ,EAAE,IAAkB,CAAC;AAG9D,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,MAAM,MAAM,IAAI,GAAG,OAAO,QAAQ,EAAE,IAAI,CAAC;AACzC,eAAO,MAAM,IAAI,EAAE,cAAc,QAAQ,EAAE,IAAkB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.Team = exports.Role = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../../utilities"));
|
|
31
|
+
exports.Role = null;
|
|
32
|
+
utilities.lazyLoad(exports, ["Role"], () => require("./role"));
|
|
33
|
+
exports.Team = null;
|
|
34
|
+
utilities.lazyLoad(exports, ["Team"], () => require("./team"));
|
|
35
|
+
const _module = {
|
|
36
|
+
version: utilities.getVersion(),
|
|
37
|
+
construct: (name, type, urn) => {
|
|
38
|
+
switch (type) {
|
|
39
|
+
case "pulumiservice:v1/teams:Role":
|
|
40
|
+
return new exports.Role(name, undefined, { urn });
|
|
41
|
+
case "pulumiservice:v1/teams:Team":
|
|
42
|
+
return new exports.Team(name, undefined, { urn });
|
|
43
|
+
default:
|
|
44
|
+
throw new Error(`unknown resource type ${type}`);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
pulumi.runtime.registerResourceModule("pulumiservice", "v1/teams", _module);
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/teams/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,2DAA6C;AAKhC,QAAA,IAAI,GAAiC,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAIlD,QAAA,IAAI,GAAiC,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAG/D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,eAAe,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateTeamRoles upserts the role assigned to a team since we currently only support
|
|
4
|
+
* a 1:1 mapping of teams to roles.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Role extends pulumi.CustomResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get an existing Role resource's state with the given name, ID, and optional extra
|
|
9
|
+
* properties used to qualify the lookup.
|
|
10
|
+
*
|
|
11
|
+
* @param name The _unique_ name of the resulting resource.
|
|
12
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
13
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
+
*/
|
|
15
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Role;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the given object is an instance of Role. 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 Role;
|
|
21
|
+
/**
|
|
22
|
+
* Create a Role resource with the given unique name, arguments, and options.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resource.
|
|
25
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
26
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
27
|
+
*/
|
|
28
|
+
constructor(name: string, args: RoleArgs, opts?: pulumi.CustomResourceOptions);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The set of arguments for constructing a Role resource.
|
|
32
|
+
*/
|
|
33
|
+
export interface RoleArgs {
|
|
34
|
+
/**
|
|
35
|
+
* The organization name
|
|
36
|
+
*/
|
|
37
|
+
orgName: pulumi.Input<string>;
|
|
38
|
+
/**
|
|
39
|
+
* The role identifier
|
|
40
|
+
*/
|
|
41
|
+
roleID: pulumi.Input<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The team name
|
|
44
|
+
*/
|
|
45
|
+
teamName: pulumi.Input<string>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../v1/teams/role.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;GAGG;AACH,qBAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;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,IAAI;IAOvG;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,IAAI;IAQ/C;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAqBhF;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
package/v1/teams/role.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
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.Role = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* UpdateTeamRoles upserts the role assigned to a team since we currently only support
|
|
33
|
+
* a 1:1 mapping of teams to roles.
|
|
34
|
+
*/
|
|
35
|
+
class Role extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing Role resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name, id, opts) {
|
|
45
|
+
return new Role(name, undefined, { ...opts, id: id });
|
|
46
|
+
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
static __pulumiType = 'pulumiservice:v1/teams:Role';
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of Role. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === Role.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a Role resource with the given unique name, arguments, and options.
|
|
61
|
+
*
|
|
62
|
+
* @param name The _unique_ name of the resource.
|
|
63
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
64
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
65
|
+
*/
|
|
66
|
+
constructor(name, args, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (!opts.id) {
|
|
70
|
+
if (args?.orgName === undefined && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'orgName'");
|
|
72
|
+
}
|
|
73
|
+
if (args?.roleID === undefined && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'roleID'");
|
|
75
|
+
}
|
|
76
|
+
if (args?.teamName === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'teamName'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["orgName"] = args?.orgName;
|
|
80
|
+
resourceInputs["roleID"] = args?.roleID;
|
|
81
|
+
resourceInputs["teamName"] = args?.teamName;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
}
|
|
85
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
86
|
+
super(Role.__pulumiType, name, resourceInputs, opts);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.Role = Role;
|
|
90
|
+
//# sourceMappingURL=role.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../../v1/teams/role.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,2DAA6C;AAE7C;;;GAGG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6BAA6B,CAAC;IAEpE;;;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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAc,EAAE,IAAmC;QACzE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;aAAM;SACN;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAvDL,oBAwDC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* CreatePulumiTeam creates a "Pulumi" team, i.e. one whose membership is managed by Pulumi.
|
|
4
|
+
* (As opposed to a GitHub or GitLab-based team.)
|
|
5
|
+
*/
|
|
6
|
+
export declare class Team extends pulumi.CustomResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
9
|
+
* properties used to qualify the lookup.
|
|
10
|
+
*
|
|
11
|
+
* @param name The _unique_ name of the resulting resource.
|
|
12
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
13
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
+
*/
|
|
15
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Team;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the given object is an instance of Team. 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 Team;
|
|
21
|
+
/**
|
|
22
|
+
* The list of account permissions granted to the team.
|
|
23
|
+
*/
|
|
24
|
+
readonly accounts: pulumi.Output<any[] | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* A free-form text description of the team's purpose.
|
|
27
|
+
*/
|
|
28
|
+
readonly description: pulumi.Output<string>;
|
|
29
|
+
/**
|
|
30
|
+
* The human-readable display name shown in the UI.
|
|
31
|
+
*/
|
|
32
|
+
readonly displayName: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* The list of environment settings for the team.
|
|
35
|
+
*/
|
|
36
|
+
readonly environments: pulumi.Output<any[] | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* The kind of team (e.g., pulumi or GitHub-backed).
|
|
39
|
+
*/
|
|
40
|
+
readonly kind: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* ListMembersError is the error message if an error was encountered whilst trying to
|
|
43
|
+
* contact the team's backend (eg. GitHub). The UI will only show this error if it is non-nil
|
|
44
|
+
* and if Members itself is an empty slice.
|
|
45
|
+
*/
|
|
46
|
+
readonly listMembersError: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The list of team members.
|
|
49
|
+
*/
|
|
50
|
+
readonly members: pulumi.Output<any[] | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The unique identifier name of the team within the organization.
|
|
53
|
+
*/
|
|
54
|
+
readonly name: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* RoleIDs are the IDs of the FGA roles assigned to the team, if any.
|
|
57
|
+
* Currently only one role per team is supported.
|
|
58
|
+
*/
|
|
59
|
+
readonly roleIds: pulumi.Output<string[] | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* The list of stack permissions granted to the team.
|
|
62
|
+
*/
|
|
63
|
+
readonly stacks: pulumi.Output<any[] | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* UserRole is the calling user's role on the given team.
|
|
66
|
+
*/
|
|
67
|
+
readonly userRole: pulumi.Output<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Create a Team resource with the given unique name, arguments, and options.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resource.
|
|
72
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
73
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
74
|
+
*/
|
|
75
|
+
constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The set of arguments for constructing a Team resource.
|
|
79
|
+
*/
|
|
80
|
+
export interface TeamArgs {
|
|
81
|
+
/**
|
|
82
|
+
* The description
|
|
83
|
+
*/
|
|
84
|
+
description: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The display name
|
|
87
|
+
*/
|
|
88
|
+
displayName: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The name
|
|
91
|
+
*/
|
|
92
|
+
name: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The organization name
|
|
95
|
+
*/
|
|
96
|
+
orgName: pulumi.Input<string>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=team.d.ts.map
|
|
@@ -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