@pulumi/pulumiservice 0.1.8 → 0.1.9-alpha.1677691437
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.js +21 -21
- package/accessToken.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +8 -0
- package/index.js.map +1 -1
- package/orgAccessToken.d.ts +57 -0
- package/orgAccessToken.js +66 -0
- package/orgAccessToken.js.map +1 -0
- package/package.json +2 -2
- package/package.json.dev +26 -0
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/stackTag.js +21 -21
- package/stackTag.js.map +1 -1
- package/team.js +21 -21
- package/team.js.map +1 -1
- package/teamAccessToken.d.ts +65 -0
- package/teamAccessToken.js +71 -0
- package/teamAccessToken.js.map +1 -0
- package/teamStackPermission.js +21 -21
- package/teamStackPermission.js.map +1 -1
- package/types/enums/index.d.ts +1 -1
- package/webhook.js +21 -21
- package/webhook.js.map +1 -1
package/accessToken.js
CHANGED
|
@@ -9,6 +9,27 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Access tokens allow a user to authenticate against the Pulumi Service
|
|
10
10
|
*/
|
|
11
11
|
class AccessToken extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing AccessToken resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new AccessToken(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of AccessToken. 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) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === AccessToken.__pulumiType;
|
|
32
|
+
}
|
|
12
33
|
/**
|
|
13
34
|
* Create a AccessToken resource with the given unique name, arguments, and options.
|
|
14
35
|
*
|
|
@@ -37,27 +58,6 @@ class AccessToken extends pulumi.CustomResource {
|
|
|
37
58
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
38
59
|
super(AccessToken.__pulumiType, name, resourceInputs, opts);
|
|
39
60
|
}
|
|
40
|
-
/**
|
|
41
|
-
* Get an existing AccessToken resource's state with the given name, ID, and optional extra
|
|
42
|
-
* properties used to qualify the lookup.
|
|
43
|
-
*
|
|
44
|
-
* @param name The _unique_ name of the resulting resource.
|
|
45
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
-
*/
|
|
48
|
-
static get(name, id, opts) {
|
|
49
|
-
return new AccessToken(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Returns true if the given object is an instance of AccessToken. This is designed to work even
|
|
53
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
-
*/
|
|
55
|
-
static isInstance(obj) {
|
|
56
|
-
if (obj === undefined || obj === null) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
return obj['__pulumiType'] === AccessToken.__pulumiType;
|
|
60
|
-
}
|
|
61
61
|
}
|
|
62
62
|
exports.AccessToken = AccessToken;
|
|
63
63
|
/** @internal */
|
package/accessToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessToken.js","sourceRoot":"","sources":["../accessToken.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,WA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Ac,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAlEL,kCAmEC;AAtDG,gBAAgB;AACO,wBAAY,GAAG,iCAAiC,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./accessToken";
|
|
2
|
+
export * from "./orgAccessToken";
|
|
2
3
|
export * from "./provider";
|
|
3
4
|
export * from "./stackTag";
|
|
4
5
|
export * from "./team";
|
|
6
|
+
export * from "./teamAccessToken";
|
|
5
7
|
export * from "./teamStackPermission";
|
|
6
8
|
export * from "./webhook";
|
|
7
9
|
export * from "./types/enums";
|
package/index.js
CHANGED
|
@@ -21,9 +21,11 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
21
21
|
const utilities = require("./utilities");
|
|
22
22
|
// Export members:
|
|
23
23
|
__exportStar(require("./accessToken"), exports);
|
|
24
|
+
__exportStar(require("./orgAccessToken"), exports);
|
|
24
25
|
__exportStar(require("./provider"), exports);
|
|
25
26
|
__exportStar(require("./stackTag"), exports);
|
|
26
27
|
__exportStar(require("./team"), exports);
|
|
28
|
+
__exportStar(require("./teamAccessToken"), exports);
|
|
27
29
|
__exportStar(require("./teamStackPermission"), exports);
|
|
28
30
|
__exportStar(require("./webhook"), exports);
|
|
29
31
|
// Export enums:
|
|
@@ -35,8 +37,10 @@ const types = require("./types");
|
|
|
35
37
|
exports.types = types;
|
|
36
38
|
// Import resources to register:
|
|
37
39
|
const accessToken_1 = require("./accessToken");
|
|
40
|
+
const orgAccessToken_1 = require("./orgAccessToken");
|
|
38
41
|
const stackTag_1 = require("./stackTag");
|
|
39
42
|
const team_1 = require("./team");
|
|
43
|
+
const teamAccessToken_1 = require("./teamAccessToken");
|
|
40
44
|
const teamStackPermission_1 = require("./teamStackPermission");
|
|
41
45
|
const webhook_1 = require("./webhook");
|
|
42
46
|
const _module = {
|
|
@@ -45,10 +49,14 @@ const _module = {
|
|
|
45
49
|
switch (type) {
|
|
46
50
|
case "pulumiservice:index:AccessToken":
|
|
47
51
|
return new accessToken_1.AccessToken(name, undefined, { urn });
|
|
52
|
+
case "pulumiservice:index:OrgAccessToken":
|
|
53
|
+
return new orgAccessToken_1.OrgAccessToken(name, undefined, { urn });
|
|
48
54
|
case "pulumiservice:index:StackTag":
|
|
49
55
|
return new stackTag_1.StackTag(name, undefined, { urn });
|
|
50
56
|
case "pulumiservice:index:Team":
|
|
51
57
|
return new team_1.Team(name, undefined, { urn });
|
|
58
|
+
case "pulumiservice:index:TeamAccessToken":
|
|
59
|
+
return new teamAccessToken_1.TeamAccessToken(name, undefined, { urn });
|
|
52
60
|
case "pulumiservice:index:TeamStackPermission":
|
|
53
61
|
return new teamStackPermission_1.TeamStackPermission(name, undefined, { urn });
|
|
54
62
|
case "pulumiservice:index:Webhook":
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B;AAC3B,yCAAuB;AACvB,wDAAs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AAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,0BAA0B;gBAC3B,OAAO,IAAI,WAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD,KAAK,qCAAqC;gBACtC,OAAO,IAAI,iCAAe,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC7D,KAAK,yCAAyC;gBAC1C,OAAO,IAAI,yCAAmB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,iBAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,eAAe,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAExE,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,eAAe,EAAE;IACpD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,gCAAgC,EAAE;YAC3C,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The Pulumi Service allows users to create access tokens scoped to orgs. Org access tokens is a resource to create them and assign them to an org
|
|
4
|
+
*/
|
|
5
|
+
export declare class OrgAccessToken extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing OrgAccessToken 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): OrgAccessToken;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of OrgAccessToken. 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 OrgAccessToken;
|
|
20
|
+
/**
|
|
21
|
+
* Optional. Description for the token.
|
|
22
|
+
*/
|
|
23
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The name for the token.
|
|
26
|
+
*/
|
|
27
|
+
readonly name: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* The organization's name.
|
|
30
|
+
*/
|
|
31
|
+
readonly organizationName: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a OrgAccessToken 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: OrgAccessTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The set of arguments for constructing a OrgAccessToken resource.
|
|
43
|
+
*/
|
|
44
|
+
export interface OrgAccessTokenArgs {
|
|
45
|
+
/**
|
|
46
|
+
* Optional. Team description.
|
|
47
|
+
*/
|
|
48
|
+
description?: pulumi.Input<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The name for the token.
|
|
51
|
+
*/
|
|
52
|
+
name: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The organization's name.
|
|
55
|
+
*/
|
|
56
|
+
organizationName: pulumi.Input<string>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumigen. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.OrgAccessToken = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The Pulumi Service allows users to create access tokens scoped to orgs. Org access tokens is a resource to create them and assign them to an org
|
|
10
|
+
*/
|
|
11
|
+
class OrgAccessToken extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing OrgAccessToken resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new OrgAccessToken(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of OrgAccessToken. 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) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === OrgAccessToken.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a OrgAccessToken resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'name'");
|
|
46
|
+
}
|
|
47
|
+
if ((!args || args.organizationName === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'organizationName'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
51
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
52
|
+
resourceInputs["organizationName"] = args ? args.organizationName : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
56
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
57
|
+
resourceInputs["organizationName"] = undefined /*out*/;
|
|
58
|
+
}
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
+
super(OrgAccessToken.__pulumiType, name, resourceInputs, opts);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.OrgAccessToken = OrgAccessToken;
|
|
64
|
+
/** @internal */
|
|
65
|
+
OrgAccessToken.__pulumiType = 'pulumiservice:index:OrgAccessToken';
|
|
66
|
+
//# sourceMappingURL=orgAccessToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orgAccessToken.js","sourceRoot":"","sources":["../orgAccessToken.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,y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kB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;aAAM;YACH,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC1D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAnEL,wCAoEC;AAvDG,gBAAgB;AACO,2BAAY,GAAG,oCAAoC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/pulumiservice",
|
|
3
|
-
"version": "v0.1.
|
|
3
|
+
"version": "v0.1.9-alpha.1677691437+f20fad89",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"kind/native",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource pulumiservice v0.1.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource pulumiservice v0.1.9-alpha.1677691437+f20fad89"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/pulumiservice",
|
|
3
|
+
"version": "v0.1.9-alpha.1677691437+f20fad89",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"pulumi",
|
|
6
|
+
"kind/native",
|
|
7
|
+
"category/infrastructure"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.com",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-pulumiservice",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource pulumiservice v0.1.9-alpha.1677691437+f20fad89"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^4.3.5"
|
|
21
|
+
},
|
|
22
|
+
"pulumi": {
|
|
23
|
+
"resource": true,
|
|
24
|
+
"name": "pulumiservice"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/provider.js
CHANGED
|
@@ -6,6 +6,16 @@ exports.Provider = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj) {
|
|
14
|
+
if (obj === undefined || obj === null) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
18
|
+
}
|
|
9
19
|
/**
|
|
10
20
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
11
21
|
*
|
|
@@ -23,16 +33,6 @@ class Provider extends pulumi.ProviderResource {
|
|
|
23
33
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
34
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
25
35
|
}
|
|
26
|
-
/**
|
|
27
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
28
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
-
*/
|
|
30
|
-
static isInstance(obj) {
|
|
31
|
-
if (obj === undefined || obj === null) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
35
|
-
}
|
|
36
36
|
}
|
|
37
37
|
exports.Provider = Provider;
|
|
38
38
|
/** @internal */
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,aAAa,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,CAAC,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC;SAC5H;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA/BL,4BAgCC;AA/BG,gBAAgB;AACO,qBAAY,GAAG,eAAe,CAAC"}
|
package/stackTag.js
CHANGED
|
@@ -9,6 +9,27 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Stacks have associated metadata in the form of tags. Each tag consists of a name and value.
|
|
10
10
|
*/
|
|
11
11
|
class StackTag extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing StackTag resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new StackTag(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of StackTag. 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) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === StackTag.__pulumiType;
|
|
32
|
+
}
|
|
12
33
|
/**
|
|
13
34
|
* Create a StackTag resource with the given unique name, arguments, and options.
|
|
14
35
|
*
|
|
@@ -36,27 +57,6 @@ class StackTag extends pulumi.CustomResource {
|
|
|
36
57
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
37
58
|
super(StackTag.__pulumiType, name, resourceInputs, opts);
|
|
38
59
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Get an existing StackTag 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 StackTag(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Returns true if the given object is an instance of StackTag. This is designed to work even
|
|
52
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
-
*/
|
|
54
|
-
static isInstance(obj) {
|
|
55
|
-
if (obj === undefined || obj === null) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
return obj['__pulumiType'] === StackTag.__pulumiType;
|
|
59
|
-
}
|
|
60
60
|
}
|
|
61
61
|
exports.StackTag = StackTag;
|
|
62
62
|
/** @internal */
|
package/stackTag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stackTag.js","sourceRoot":"","sources":["../stackTag.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"stackTag.js","sourceRoot":"","sources":["../stackTag.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OA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OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAzEL,4BA0EC;AA7DG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
package/team.js
CHANGED
|
@@ -9,6 +9,27 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The Pulumi Service offers role-based access control (RBAC) using teams. Teams allow organization admins to assign a set of stack permissions to a group of users.
|
|
10
10
|
*/
|
|
11
11
|
class Team extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new Team(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Team. 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) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === Team.__pulumiType;
|
|
32
|
+
}
|
|
12
33
|
/**
|
|
13
34
|
* Create a Team resource with the given unique name, arguments, and options.
|
|
14
35
|
*
|
|
@@ -47,27 +68,6 @@ class Team extends pulumi.CustomResource {
|
|
|
47
68
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
48
69
|
super(Team.__pulumiType, name, resourceInputs, opts);
|
|
49
70
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
52
|
-
* properties used to qualify the lookup.
|
|
53
|
-
*
|
|
54
|
-
* @param name The _unique_ name of the resulting resource.
|
|
55
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
-
*/
|
|
58
|
-
static get(name, id, opts) {
|
|
59
|
-
return new Team(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
63
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
-
*/
|
|
65
|
-
static isInstance(obj) {
|
|
66
|
-
if (obj === undefined || obj === null) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
return obj['__pulumiType'] === Team.__pulumiType;
|
|
70
|
-
}
|
|
71
71
|
}
|
|
72
72
|
exports.Team = Team;
|
|
73
73
|
/** @internal */
|
package/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;I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
/**
|
|
3
|
+
* The Pulumi Service allows users to create access tokens scoped to team. Team access tokens is a resource to create them and assign them to a team
|
|
4
|
+
*/
|
|
5
|
+
export declare class TeamAccessToken extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing TeamAccessToken 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): TeamAccessToken;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of TeamAccessToken. 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 TeamAccessToken;
|
|
20
|
+
/**
|
|
21
|
+
* Optional. Description for the token.
|
|
22
|
+
*/
|
|
23
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The name for the token. This must be unique amongst all machine tokens within your organization.
|
|
26
|
+
*/
|
|
27
|
+
readonly name: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* The organization's name.
|
|
30
|
+
*/
|
|
31
|
+
readonly organizationName: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* The team name.
|
|
34
|
+
*/
|
|
35
|
+
readonly teamName: pulumi.Output<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Create a TeamAccessToken resource with the given unique name, arguments, and options.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resource.
|
|
40
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
41
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
42
|
+
*/
|
|
43
|
+
constructor(name: string, args: TeamAccessTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The set of arguments for constructing a TeamAccessToken resource.
|
|
47
|
+
*/
|
|
48
|
+
export interface TeamAccessTokenArgs {
|
|
49
|
+
/**
|
|
50
|
+
* Optional. Team description.
|
|
51
|
+
*/
|
|
52
|
+
description?: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The name for the token. This must be unique amongst all machine tokens within your organization.
|
|
55
|
+
*/
|
|
56
|
+
name: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The organization's name.
|
|
59
|
+
*/
|
|
60
|
+
organizationName: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The team name.
|
|
63
|
+
*/
|
|
64
|
+
teamName: pulumi.Input<string>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumigen. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TeamAccessToken = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The Pulumi Service allows users to create access tokens scoped to team. Team access tokens is a resource to create them and assign them to a team
|
|
10
|
+
*/
|
|
11
|
+
class TeamAccessToken extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing TeamAccessToken resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new TeamAccessToken(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of TeamAccessToken. 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) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === TeamAccessToken.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a TeamAccessToken resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'name'");
|
|
46
|
+
}
|
|
47
|
+
if ((!args || args.organizationName === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'organizationName'");
|
|
49
|
+
}
|
|
50
|
+
if ((!args || args.teamName === undefined) && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'teamName'");
|
|
52
|
+
}
|
|
53
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
54
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
55
|
+
resourceInputs["organizationName"] = args ? args.organizationName : undefined;
|
|
56
|
+
resourceInputs["teamName"] = args ? args.teamName : undefined;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
61
|
+
resourceInputs["organizationName"] = undefined /*out*/;
|
|
62
|
+
resourceInputs["teamName"] = undefined /*out*/;
|
|
63
|
+
}
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
65
|
+
super(TeamAccessToken.__pulumiType, name, resourceInputs, opts);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.TeamAccessToken = TeamAccessToken;
|
|
69
|
+
/** @internal */
|
|
70
|
+
TeamAccessToken.__pulumiType = 'pulumiservice:index:TeamAccessToken';
|
|
71
|
+
//# sourceMappingURL=teamAccessToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamAccessToken.js","sourceRoot":"","sources":["../teamAccessToken.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAmBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAyB,EAAE,IAAmC;QACpF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CA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AAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA5EL,0CA6EC;AAhEG,gBAAgB;AACO,4BAAY,GAAG,qCAAqC,CAAC"}
|
package/teamStackPermission.js
CHANGED
|
@@ -9,6 +9,27 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Grants a team permissions to the specified stack.
|
|
10
10
|
*/
|
|
11
11
|
class TeamStackPermission extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing TeamStackPermission resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new TeamStackPermission(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of TeamStackPermission. 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) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === TeamStackPermission.__pulumiType;
|
|
32
|
+
}
|
|
12
33
|
/**
|
|
13
34
|
* Create a TeamStackPermission resource with the given unique name, arguments, and options.
|
|
14
35
|
*
|
|
@@ -46,27 +67,6 @@ class TeamStackPermission extends pulumi.CustomResource {
|
|
|
46
67
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
47
68
|
super(TeamStackPermission.__pulumiType, name, resourceInputs, opts);
|
|
48
69
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Get an existing TeamStackPermission resource's state with the given name, ID, and optional extra
|
|
51
|
-
* properties used to qualify the lookup.
|
|
52
|
-
*
|
|
53
|
-
* @param name The _unique_ name of the resulting resource.
|
|
54
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
|
-
*/
|
|
57
|
-
static get(name, id, opts) {
|
|
58
|
-
return new TeamStackPermission(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Returns true if the given object is an instance of TeamStackPermission. This is designed to work even
|
|
62
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
-
*/
|
|
64
|
-
static isInstance(obj) {
|
|
65
|
-
if (obj === undefined || obj === null) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
return obj['__pulumiType'] === TeamStackPermission.__pulumiType;
|
|
69
|
-
}
|
|
70
70
|
}
|
|
71
71
|
exports.TeamStackPermission = TeamStackPermission;
|
|
72
72
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamStackPermission.js","sourceRoot":"","sources":["../teamStackPermission.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"teamStackPermission.js","sourceRoot":"","sources":["../teamStackPermission.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,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AAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;aAAM;SACN;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AA/DL,kDAgEC;AAnDG,gBAAgB;AACO,gCAAY,GAAG,yCAAyC,CAAC"}
|
package/types/enums/index.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export declare const TeamStackPermissionScope: {
|
|
|
12
12
|
*/
|
|
13
13
|
readonly Admin: 103;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type TeamStackPermissionScope = (typeof TeamStackPermissionScope)[keyof typeof TeamStackPermissionScope];
|
package/webhook.js
CHANGED
|
@@ -9,6 +9,27 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Pulumi Webhooks allow you to notify external services of events happening within your Pulumi organization or stack. For example, you can trigger a notification whenever a stack is updated. Whenever an event occurs, Pulumi will send an HTTP POST request to all registered webhooks. The webhook can then be used to emit some notification, start running integration tests, or even update additional stacks.
|
|
10
10
|
*/
|
|
11
11
|
class Webhook extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Webhook resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new Webhook(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
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) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === Webhook.__pulumiType;
|
|
32
|
+
}
|
|
12
33
|
/**
|
|
13
34
|
* Create a Webhook resource with the given unique name, arguments, and options.
|
|
14
35
|
*
|
|
@@ -52,27 +73,6 @@ class Webhook extends pulumi.CustomResource {
|
|
|
52
73
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
53
74
|
super(Webhook.__pulumiType, name, resourceInputs, opts);
|
|
54
75
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Get an existing Webhook resource's state with the given name, ID, and optional extra
|
|
57
|
-
* properties used to qualify the lookup.
|
|
58
|
-
*
|
|
59
|
-
* @param name The _unique_ name of the resulting resource.
|
|
60
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
62
|
-
*/
|
|
63
|
-
static get(name, id, opts) {
|
|
64
|
-
return new Webhook(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Returns true if the given object is an instance of Webhook. This is designed to work even
|
|
68
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
-
*/
|
|
70
|
-
static isInstance(obj) {
|
|
71
|
-
if (obj === undefined || obj === null) {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
return obj['__pulumiType'] === Webhook.__pulumiType;
|
|
75
|
-
}
|
|
76
76
|
}
|
|
77
77
|
exports.Webhook = Webhook;
|
|
78
78
|
/** @internal */
|
package/webhook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../webhook.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../webhook.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA2BD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,I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