@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.
- package/config/vars.js +1 -1
- package/config/vars.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/provider.js +1 -1
- package/provider.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/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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,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IAC7E;;OAEG;IACH,SAAgC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,SAAgC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAE5E;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA4ChF;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC"}
|
package/v1/teams/team.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
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 = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* CreatePulumiTeam creates a "Pulumi" team, i.e. one whose membership is managed by Pulumi.
|
|
33
|
+
* (As opposed to a GitHub or GitLab-based team.)
|
|
34
|
+
*/
|
|
35
|
+
class Team extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing Team 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 Team(name, undefined, { ...opts, id: id });
|
|
46
|
+
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
static __pulumiType = 'pulumiservice:v1/teams:Team';
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of Team. 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'] === Team.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a Team 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?.description === undefined && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'description'");
|
|
72
|
+
}
|
|
73
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'displayName'");
|
|
75
|
+
}
|
|
76
|
+
if (args?.name === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'name'");
|
|
78
|
+
}
|
|
79
|
+
if (args?.orgName === undefined && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'orgName'");
|
|
81
|
+
}
|
|
82
|
+
resourceInputs["description"] = args?.description;
|
|
83
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
84
|
+
resourceInputs["name"] = args?.name;
|
|
85
|
+
resourceInputs["orgName"] = args?.orgName;
|
|
86
|
+
resourceInputs["accounts"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["environments"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["listMembersError"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["members"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["roleIds"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["stacks"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["userRole"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
resourceInputs["accounts"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["environments"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["listMembersError"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["members"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["roleIds"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["stacks"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["userRole"] = undefined /*out*/;
|
|
107
|
+
}
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
|
+
super(Team.__pulumiType, name, resourceInputs, opts);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.Team = Team;
|
|
113
|
+
//# sourceMappingURL=team.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../../v1/teams/team.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;QA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Ac,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AA7HL,oBA8HC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { OrgTokenArgs } from "./orgToken";
|
|
2
|
+
export type OrgToken = import("./orgToken").OrgToken;
|
|
3
|
+
export declare const OrgToken: typeof import("./orgToken").OrgToken;
|
|
4
|
+
export { PersonalTokenArgs } from "./personalToken";
|
|
5
|
+
export type PersonalToken = import("./personalToken").PersonalToken;
|
|
6
|
+
export declare const PersonalToken: typeof import("./personalToken").PersonalToken;
|
|
7
|
+
export { TeamTokenArgs } from "./teamToken";
|
|
8
|
+
export type TeamToken = import("./teamToken").TeamToken;
|
|
9
|
+
export declare const TeamToken: typeof import("./teamToken").TeamToken;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v1/tokens/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,OAAO,YAAY,EAAE,QAAQ,CAAC;AACrD,eAAO,MAAM,QAAQ,EAAE,cAAc,YAAY,EAAE,QAAsB,CAAC;AAG1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,OAAO,iBAAiB,EAAE,aAAa,CAAC;AACpE,eAAO,MAAM,aAAa,EAAE,cAAc,iBAAiB,EAAE,aAA2B,CAAC;AAGzF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,OAAO,aAAa,EAAE,SAAS,CAAC;AACxD,eAAO,MAAM,SAAS,EAAE,cAAc,aAAa,EAAE,SAAuB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.TeamToken = exports.PersonalToken = exports.OrgToken = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../../utilities"));
|
|
31
|
+
exports.OrgToken = null;
|
|
32
|
+
utilities.lazyLoad(exports, ["OrgToken"], () => require("./orgToken"));
|
|
33
|
+
exports.PersonalToken = null;
|
|
34
|
+
utilities.lazyLoad(exports, ["PersonalToken"], () => require("./personalToken"));
|
|
35
|
+
exports.TeamToken = null;
|
|
36
|
+
utilities.lazyLoad(exports, ["TeamToken"], () => require("./teamToken"));
|
|
37
|
+
const _module = {
|
|
38
|
+
version: utilities.getVersion(),
|
|
39
|
+
construct: (name, type, urn) => {
|
|
40
|
+
switch (type) {
|
|
41
|
+
case "pulumiservice:v1/tokens:OrgToken":
|
|
42
|
+
return new exports.OrgToken(name, undefined, { urn });
|
|
43
|
+
case "pulumiservice:v1/tokens:PersonalToken":
|
|
44
|
+
return new exports.PersonalToken(name, undefined, { urn });
|
|
45
|
+
case "pulumiservice:v1/tokens:TeamToken":
|
|
46
|
+
return new exports.TeamToken(name, undefined, { urn });
|
|
47
|
+
default:
|
|
48
|
+
throw new Error(`unknown resource type ${type}`);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
pulumi.runtime.registerResourceModule("pulumiservice", "v1/tokens", _module);
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/tokens/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,2DAA6C;AAKhC,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,aAAa,GAAmD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAIpE,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAGzE,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,kCAAkC;gBACnC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,uCAAuC;gBACxC,OAAO,IAAI,qBAAa,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC3D,KAAK,mCAAmC;gBACpC,OAAO,IAAI,iBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,eAAe,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Generates a new access token scoped to the organization for use in CI/CD pipelines and automated workflows. Organization tokens belong to the organization rather than individual users, ensuring that access is not disrupted when team members leave.
|
|
4
|
+
*
|
|
5
|
+
* The `name` field must be unique across the organization (including deleted tokens) and cannot exceed 40 characters. The `expires` field accepts a unix epoch timestamp up to two years from the present, or `0` for no expiry (default).
|
|
6
|
+
*
|
|
7
|
+
* **Important:** The token value in the response is only returned once at creation time and cannot be retrieved later. Audit logs for actions performed with organization tokens are attributed to the organization rather than an individual user.
|
|
8
|
+
*/
|
|
9
|
+
export declare class OrgToken extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing OrgToken resource's state with the given name, ID, and optional extra
|
|
12
|
+
* properties used to qualify the lookup.
|
|
13
|
+
*
|
|
14
|
+
* @param name The _unique_ name of the resulting resource.
|
|
15
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): OrgToken;
|
|
19
|
+
/**
|
|
20
|
+
* Returns true if the given object is an instance of OrgToken. This is designed to work even
|
|
21
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
22
|
+
*/
|
|
23
|
+
static isInstance(obj: any): obj is OrgToken;
|
|
24
|
+
/**
|
|
25
|
+
* The unique identifier
|
|
26
|
+
*/
|
|
27
|
+
readonly tokenId: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The token value
|
|
30
|
+
*/
|
|
31
|
+
readonly tokenValue: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a OrgToken resource with the given unique name, arguments, and options.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resource.
|
|
36
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
37
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
38
|
+
*/
|
|
39
|
+
constructor(name: string, args: OrgTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The set of arguments for constructing a OrgToken resource.
|
|
43
|
+
*/
|
|
44
|
+
export interface OrgTokenArgs {
|
|
45
|
+
/**
|
|
46
|
+
* Whether the entity has admin privileges
|
|
47
|
+
*/
|
|
48
|
+
admin: pulumi.Input<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* The description
|
|
51
|
+
*/
|
|
52
|
+
description: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The expiration time
|
|
55
|
+
*/
|
|
56
|
+
expires: pulumi.Input<number>;
|
|
57
|
+
/**
|
|
58
|
+
* The name
|
|
59
|
+
*/
|
|
60
|
+
name: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The organization name
|
|
63
|
+
*/
|
|
64
|
+
orgName: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Audit log reason for creating this token
|
|
67
|
+
*/
|
|
68
|
+
reason?: pulumi.Input<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The role identifier
|
|
71
|
+
*/
|
|
72
|
+
roleID?: pulumi.Input<string | undefined>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=orgToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orgToken.d.ts","sourceRoot":"","sources":["../../../v1/tokens/orgToken.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;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,QAAQ;IAO3G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;IAOnD;;OAEG;IACH,SAAgC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/D;;OAEG;IACH,SAAgC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAElE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAqCpF;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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.OrgToken = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Generates a new access token scoped to the organization for use in CI/CD pipelines and automated workflows. Organization tokens belong to the organization rather than individual users, ensuring that access is not disrupted when team members leave.
|
|
33
|
+
*
|
|
34
|
+
* The `name` field must be unique across the organization (including deleted tokens) and cannot exceed 40 characters. The `expires` field accepts a unix epoch timestamp up to two years from the present, or `0` for no expiry (default).
|
|
35
|
+
*
|
|
36
|
+
* **Important:** The token value in the response is only returned once at creation time and cannot be retrieved later. Audit logs for actions performed with organization tokens are attributed to the organization rather than an individual user.
|
|
37
|
+
*/
|
|
38
|
+
class OrgToken extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing OrgToken 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 OrgToken(name, undefined, { ...opts, id: id });
|
|
49
|
+
}
|
|
50
|
+
/** @internal */
|
|
51
|
+
static __pulumiType = 'pulumiservice:v1/tokens:OrgToken';
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of OrgToken. 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'] === OrgToken.__pulumiType;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Create a OrgToken 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?.admin === undefined && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'admin'");
|
|
75
|
+
}
|
|
76
|
+
if (args?.description === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'description'");
|
|
78
|
+
}
|
|
79
|
+
if (args?.expires === undefined && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'expires'");
|
|
81
|
+
}
|
|
82
|
+
if (args?.name === undefined && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'name'");
|
|
84
|
+
}
|
|
85
|
+
if (args?.orgName === undefined && !opts.urn) {
|
|
86
|
+
throw new Error("Missing required property 'orgName'");
|
|
87
|
+
}
|
|
88
|
+
resourceInputs["admin"] = args?.admin;
|
|
89
|
+
resourceInputs["description"] = args?.description;
|
|
90
|
+
resourceInputs["expires"] = args?.expires;
|
|
91
|
+
resourceInputs["name"] = args?.name;
|
|
92
|
+
resourceInputs["orgName"] = args?.orgName;
|
|
93
|
+
resourceInputs["reason"] = args?.reason;
|
|
94
|
+
resourceInputs["roleID"] = args?.roleID;
|
|
95
|
+
resourceInputs["tokenId"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["tokenValue"] = undefined /*out*/;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
resourceInputs["tokenId"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["tokenValue"] = undefined /*out*/;
|
|
101
|
+
}
|
|
102
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
103
|
+
const secretOpts = { additionalSecretOutputs: ["tokenValue"] };
|
|
104
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
105
|
+
super(OrgToken.__pulumiType, name, resourceInputs, opts);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.OrgToken = OrgToken;
|
|
109
|
+
//# sourceMappingURL=orgToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orgToken.js","sourceRoot":"","sources":["../../../v1/tokens/orgToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,2DAA6C;AAE7C;;;;;;GAMG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kCAAkC,CAAC;IAEzE;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAWD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAmC;QAC7E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI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G,SAAS,CAAC,OAAO,CAAC;SACpD;aAAM;YACH,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,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,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA/EL,4BAgFC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new personal access token for the authenticated user. The request body includes a description for the token and an optional expiration time. The response includes the token ID and the tokenValue (prefixed with 'pul-'). The token value is only returned once at creation time and cannot be retrieved later.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PersonalToken extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing PersonalToken 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): PersonalToken;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of PersonalToken. 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 PersonalToken;
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier
|
|
22
|
+
*/
|
|
23
|
+
readonly tokenId: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The token value
|
|
26
|
+
*/
|
|
27
|
+
readonly tokenValue: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a PersonalToken resource with the given unique name, arguments, and options.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resource.
|
|
32
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
33
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
34
|
+
*/
|
|
35
|
+
constructor(name: string, args: PersonalTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The set of arguments for constructing a PersonalToken resource.
|
|
39
|
+
*/
|
|
40
|
+
export interface PersonalTokenArgs {
|
|
41
|
+
/**
|
|
42
|
+
* The description
|
|
43
|
+
*/
|
|
44
|
+
description: pulumi.Input<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The expiration time
|
|
47
|
+
*/
|
|
48
|
+
expires: pulumi.Input<number>;
|
|
49
|
+
/**
|
|
50
|
+
* Tracks the context that triggered token creation (e.g., redirect URL or referral source)
|
|
51
|
+
*/
|
|
52
|
+
reason?: pulumi.Input<string | undefined>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=personalToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"personalToken.d.ts","sourceRoot":"","sources":["../../../v1/tokens/personalToken.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;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,aAAa;IAOhH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,aAAa;IAOxD;;OAEG;IACH,SAAgC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/D;;OAEG;IACH,SAAgC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAElE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAwBzF;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C"}
|