@pulumi/pulumiservice 0.0.3
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/LICENSE +202 -0
- package/README.md +5 -0
- package/accessToken.d.ts +49 -0
- package/accessToken.js +65 -0
- package/accessToken.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +1 -0
- package/config/vars.js +13 -0
- package/config/vars.js.map +1 -0
- package/index.d.ts +7 -0
- package/index.js +64 -0
- package/index.js.map +1 -0
- package/package.json +25 -0
- package/package.json.bak +25 -0
- package/provider.d.ts +25 -0
- package/provider.js +40 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +26 -0
- package/stackTag.d.ts +73 -0
- package/stackTag.js +64 -0
- package/stackTag.js.map +1 -0
- package/team.d.ts +81 -0
- package/team.js +75 -0
- package/team.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +57 -0
- package/utilities.js.map +1 -0
- package/webhook.d.ts +77 -0
- package/webhook.js +80 -0
- package/webhook.js.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
package/accessToken.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Access tokens allow a user to authenticate against the Pulumi Service
|
|
4
|
+
*/
|
|
5
|
+
export declare class AccessToken extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing AccessToken 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): AccessToken;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of AccessToken. 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 AccessToken;
|
|
20
|
+
/**
|
|
21
|
+
* Description of the access token.
|
|
22
|
+
*/
|
|
23
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The token identifier.
|
|
26
|
+
*/
|
|
27
|
+
readonly tokenId: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* The token's value.
|
|
30
|
+
*/
|
|
31
|
+
readonly value: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a AccessToken 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: AccessTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The set of arguments for constructing a AccessToken resource.
|
|
43
|
+
*/
|
|
44
|
+
export interface AccessTokenArgs {
|
|
45
|
+
/**
|
|
46
|
+
* Description of the access token.
|
|
47
|
+
*/
|
|
48
|
+
description: pulumi.Input<string>;
|
|
49
|
+
}
|
package/accessToken.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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.AccessToken = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Access tokens allow a user to authenticate against the Pulumi Service
|
|
10
|
+
*/
|
|
11
|
+
class AccessToken extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a AccessToken resource with the given unique name, arguments, and options.
|
|
14
|
+
*
|
|
15
|
+
* @param name The _unique_ name of the resource.
|
|
16
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
17
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
18
|
+
*/
|
|
19
|
+
constructor(name, args, opts) {
|
|
20
|
+
let resourceInputs = {};
|
|
21
|
+
opts = opts || {};
|
|
22
|
+
if (!opts.id) {
|
|
23
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
24
|
+
throw new Error("Missing required property 'description'");
|
|
25
|
+
}
|
|
26
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
27
|
+
resourceInputs["tokenId"] = undefined /*out*/;
|
|
28
|
+
resourceInputs["value"] = undefined /*out*/;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
32
|
+
resourceInputs["tokenId"] = undefined /*out*/;
|
|
33
|
+
resourceInputs["value"] = undefined /*out*/;
|
|
34
|
+
}
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
36
|
+
const secretOpts = { additionalSecretOutputs: ["value"] };
|
|
37
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
38
|
+
super(AccessToken.__pulumiType, name, resourceInputs, opts);
|
|
39
|
+
}
|
|
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
|
+
}
|
|
62
|
+
exports.AccessToken = AccessToken;
|
|
63
|
+
/** @internal */
|
|
64
|
+
AccessToken.__pulumiType = 'pulumiservice:index:AccessToken';
|
|
65
|
+
//# sourceMappingURL=accessToken.js.map
|
|
@@ -0,0 +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,WAAY,SAAQ,MAAM,CAAC,cAAc;IAwClD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAqB,EAAE,IAAmC;QAChF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CA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C,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AAzBL,kCAmEC;AAtDG,gBAAgB;AACO,wBAAY,GAAG,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vars";
|
package/config/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
// Export members:
|
|
20
|
+
__exportStar(require("./vars"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const accessToken: string | undefined;
|
package/config/vars.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const __config = new pulumi.Config("pulumiservice");
|
|
7
|
+
Object.defineProperty(exports, "accessToken", {
|
|
8
|
+
get() {
|
|
9
|
+
return __config.get("accessToken");
|
|
10
|
+
},
|
|
11
|
+
enumerable: true,
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAGpD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACvC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.config = void 0;
|
|
20
|
+
const pulumi = require("@pulumi/pulumi");
|
|
21
|
+
const utilities = require("./utilities");
|
|
22
|
+
// Export members:
|
|
23
|
+
__exportStar(require("./accessToken"), exports);
|
|
24
|
+
__exportStar(require("./provider"), exports);
|
|
25
|
+
__exportStar(require("./stackTag"), exports);
|
|
26
|
+
__exportStar(require("./team"), exports);
|
|
27
|
+
__exportStar(require("./webhook"), exports);
|
|
28
|
+
// Export sub-modules:
|
|
29
|
+
const config = require("./config");
|
|
30
|
+
exports.config = config;
|
|
31
|
+
// Import resources to register:
|
|
32
|
+
const accessToken_1 = require("./accessToken");
|
|
33
|
+
const stackTag_1 = require("./stackTag");
|
|
34
|
+
const team_1 = require("./team");
|
|
35
|
+
const webhook_1 = require("./webhook");
|
|
36
|
+
const _module = {
|
|
37
|
+
version: utilities.getVersion(),
|
|
38
|
+
construct: (name, type, urn) => {
|
|
39
|
+
switch (type) {
|
|
40
|
+
case "pulumiservice:index:AccessToken":
|
|
41
|
+
return new accessToken_1.AccessToken(name, undefined, { urn });
|
|
42
|
+
case "pulumiservice:index:StackTag":
|
|
43
|
+
return new stackTag_1.StackTag(name, undefined, { urn });
|
|
44
|
+
case "pulumiservice:index:Team":
|
|
45
|
+
return new team_1.Team(name, undefined, { urn });
|
|
46
|
+
case "pulumiservice:index:Webhook":
|
|
47
|
+
return new webhook_1.Webhook(name, undefined, { urn });
|
|
48
|
+
default:
|
|
49
|
+
throw new Error(`unknown resource type ${type}`);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
pulumi.runtime.registerResourceModule("pulumiservice", "index", _module);
|
|
54
|
+
const provider_1 = require("./provider");
|
|
55
|
+
pulumi.runtime.registerResourcePackage("pulumiservice", {
|
|
56
|
+
version: utilities.getVersion(),
|
|
57
|
+
constructProvider: (name, type, urn) => {
|
|
58
|
+
if (type !== "pulumi:providers:pulumiservice") {
|
|
59
|
+
throw new Error(`unknown provider type ${type}`);
|
|
60
|
+
}
|
|
61
|
+
return new provider_1.Provider(name, undefined, { urn });
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +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,4CAA0B;AAE1B,sBAAsB;AACtB,mCAAmC;AAG/B,wBAAM;AAGV,gCAAgC;AAChC,+CAA4C;AAC5C,yCAAsC;AACtC,iCAA8B;AAC9B,uCAAoC;AAEpC,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,iCAAiC;gBAClC,OAAO,IAAI,yBAAW,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzD,KAAK,8BAA8B;gBAC/B,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,0BAA0B;gBAC3B,OAAO,IAAI,WAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD,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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/pulumiservice",
|
|
3
|
+
"version": "v0.0.3",
|
|
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.0.3"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^4.3.5"
|
|
21
|
+
},
|
|
22
|
+
"pulumi": {
|
|
23
|
+
"resource": true
|
|
24
|
+
}
|
|
25
|
+
}
|
package/package.json.bak
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/pulumiservice",
|
|
3
|
+
"version": "${VERSION}",
|
|
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 ${VERSION}"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^4.3.5"
|
|
21
|
+
},
|
|
22
|
+
"pulumi": {
|
|
23
|
+
"resource": true
|
|
24
|
+
}
|
|
25
|
+
}
|
package/provider.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
3
|
+
/**
|
|
4
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
5
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
6
|
+
*/
|
|
7
|
+
static isInstance(obj: any): obj is Provider;
|
|
8
|
+
/**
|
|
9
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
10
|
+
*
|
|
11
|
+
* @param name The _unique_ name of the resource.
|
|
12
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
13
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
14
|
+
*/
|
|
15
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The set of arguments for constructing a Provider resource.
|
|
19
|
+
*/
|
|
20
|
+
export interface ProviderArgs {
|
|
21
|
+
/**
|
|
22
|
+
* Access Token to authenticate with Pulumi Service.
|
|
23
|
+
*/
|
|
24
|
+
accessToken?: pulumi.Input<string>;
|
|
25
|
+
}
|
package/provider.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
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.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resource.
|
|
13
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
14
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
15
|
+
*/
|
|
16
|
+
constructor(name, args, opts) {
|
|
17
|
+
var _a;
|
|
18
|
+
let resourceInputs = {};
|
|
19
|
+
opts = opts || {};
|
|
20
|
+
{
|
|
21
|
+
resourceInputs["accessToken"] = (_a = (args ? args.accessToken : undefined)) !== null && _a !== void 0 ? _a : (utilities.getEnv("PULUMI_ACCESS_TOKEN") || "");
|
|
22
|
+
}
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
25
|
+
}
|
|
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
|
+
}
|
|
37
|
+
exports.Provider = Provider;
|
|
38
|
+
/** @internal */
|
|
39
|
+
Provider.__pulumiType = 'pulumiservice';
|
|
40
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.js.map
ADDED
|
@@ -0,0 +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;IAgBjD;;;;;;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;IA3BD;;;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;;AAbL,4BAgCC;AA/BG,gBAAgB;AACO,qBAAY,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var childProcess = require("child_process");
|
|
3
|
+
|
|
4
|
+
var args = process.argv.slice(2);
|
|
5
|
+
|
|
6
|
+
if (args.indexOf("${VERSION}") !== -1) {
|
|
7
|
+
process.exit(0);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
11
|
+
stdio: ["ignore", "inherit", "inherit"]
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
if (res.error && res.error.code === "ENOENT") {
|
|
15
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
16
|
+
"It looks like `pulumi` is not installed on your system. " +
|
|
17
|
+
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
18
|
+
"You may try manually installing the plugin by running " +
|
|
19
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
20
|
+
} else if (res.error || res.status !== 0) {
|
|
21
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
22
|
+
"You may try to manually installing the plugin by running " +
|
|
23
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
process.exit(0);
|
package/stackTag.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Stacks have associated metadata in the form of tags. Each tag consists of a name and value.
|
|
4
|
+
*/
|
|
5
|
+
export declare class StackTag extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing StackTag 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): StackTag;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of StackTag. 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 StackTag;
|
|
20
|
+
/**
|
|
21
|
+
* Name of the tag. The 'key' part of the key=value pair
|
|
22
|
+
*/
|
|
23
|
+
readonly name: pulumi.Output<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Organization name.
|
|
26
|
+
*/
|
|
27
|
+
readonly organization: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Project name.
|
|
30
|
+
*/
|
|
31
|
+
readonly project: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Stack name.
|
|
34
|
+
*/
|
|
35
|
+
readonly stack: pulumi.Output<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the tag. The 'value' part of the key=value pair
|
|
38
|
+
*/
|
|
39
|
+
readonly value: pulumi.Output<string | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Create a StackTag resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, args?: StackTagArgs, opts?: pulumi.CustomResourceOptions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The set of arguments for constructing a StackTag resource.
|
|
51
|
+
*/
|
|
52
|
+
export interface StackTagArgs {
|
|
53
|
+
/**
|
|
54
|
+
* Name of the tag. The 'key' part of the key=value pair
|
|
55
|
+
*/
|
|
56
|
+
name?: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Organization name.
|
|
59
|
+
*/
|
|
60
|
+
organization?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Project name.
|
|
63
|
+
*/
|
|
64
|
+
project?: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Stack name.
|
|
67
|
+
*/
|
|
68
|
+
stack?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Value of the tag. The 'value' part of the key=value pair
|
|
71
|
+
*/
|
|
72
|
+
value?: pulumi.Input<string>;
|
|
73
|
+
}
|
package/stackTag.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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.StackTag = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Stacks have associated metadata in the form of tags. Each tag consists of a name and value.
|
|
10
|
+
*/
|
|
11
|
+
class StackTag extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a StackTag resource with the given unique name, arguments, and options.
|
|
14
|
+
*
|
|
15
|
+
* @param name The _unique_ name of the resource.
|
|
16
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
17
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
18
|
+
*/
|
|
19
|
+
constructor(name, args, opts) {
|
|
20
|
+
let resourceInputs = {};
|
|
21
|
+
opts = opts || {};
|
|
22
|
+
if (!opts.id) {
|
|
23
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
24
|
+
resourceInputs["organization"] = args ? args.organization : undefined;
|
|
25
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
26
|
+
resourceInputs["stack"] = args ? args.stack : undefined;
|
|
27
|
+
resourceInputs["value"] = args ? args.value : undefined;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
31
|
+
resourceInputs["organization"] = undefined /*out*/;
|
|
32
|
+
resourceInputs["project"] = undefined /*out*/;
|
|
33
|
+
resourceInputs["stack"] = undefined /*out*/;
|
|
34
|
+
resourceInputs["value"] = undefined /*out*/;
|
|
35
|
+
}
|
|
36
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
37
|
+
super(StackTag.__pulumiType, name, resourceInputs, opts);
|
|
38
|
+
}
|
|
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
|
+
}
|
|
61
|
+
exports.StackTag = StackTag;
|
|
62
|
+
/** @internal */
|
|
63
|
+
StackTag.__pulumiType = 'pulumiservice:index:StackTag';
|
|
64
|
+
//# sourceMappingURL=stackTag.js.map
|
package/stackTag.js.map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C,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;IAxED;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAzBL,4BA0EC;AA7DG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
package/team.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Team extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Team 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): Team;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Team. 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 Team;
|
|
20
|
+
/**
|
|
21
|
+
* Optional. Team description.
|
|
22
|
+
*/
|
|
23
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Optional. Team display name.
|
|
26
|
+
*/
|
|
27
|
+
readonly displayName: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* List of team members.
|
|
30
|
+
*/
|
|
31
|
+
readonly members: pulumi.Output<string[] | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* The team name.
|
|
34
|
+
*/
|
|
35
|
+
readonly name: pulumi.Output<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* The organization's name.
|
|
38
|
+
*/
|
|
39
|
+
readonly organizationName: pulumi.Output<string | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* The type of team. Must be either `pulumi` or `github`.
|
|
42
|
+
*/
|
|
43
|
+
readonly teamType: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a Team resource with the given unique name, arguments, and options.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resource.
|
|
48
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
49
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
50
|
+
*/
|
|
51
|
+
constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The set of arguments for constructing a Team resource.
|
|
55
|
+
*/
|
|
56
|
+
export interface TeamArgs {
|
|
57
|
+
/**
|
|
58
|
+
* Optional. Team description.
|
|
59
|
+
*/
|
|
60
|
+
description?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Optional. Team display name.
|
|
63
|
+
*/
|
|
64
|
+
displayName?: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* List of team members.
|
|
67
|
+
*/
|
|
68
|
+
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
69
|
+
/**
|
|
70
|
+
* The team name.
|
|
71
|
+
*/
|
|
72
|
+
name: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The organization's name.
|
|
75
|
+
*/
|
|
76
|
+
organizationName: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* The type of team. Must be either `pulumi` or `github`.
|
|
79
|
+
*/
|
|
80
|
+
teamType: pulumi.Input<string>;
|
|
81
|
+
}
|
package/team.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
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.Team = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
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
|
+
*/
|
|
11
|
+
class Team extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a Team resource with the given unique name, arguments, and options.
|
|
14
|
+
*
|
|
15
|
+
* @param name The _unique_ name of the resource.
|
|
16
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
17
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
18
|
+
*/
|
|
19
|
+
constructor(name, args, opts) {
|
|
20
|
+
let resourceInputs = {};
|
|
21
|
+
opts = opts || {};
|
|
22
|
+
if (!opts.id) {
|
|
23
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
24
|
+
throw new Error("Missing required property 'name'");
|
|
25
|
+
}
|
|
26
|
+
if ((!args || args.organizationName === undefined) && !opts.urn) {
|
|
27
|
+
throw new Error("Missing required property 'organizationName'");
|
|
28
|
+
}
|
|
29
|
+
if ((!args || args.teamType === undefined) && !opts.urn) {
|
|
30
|
+
throw new Error("Missing required property 'teamType'");
|
|
31
|
+
}
|
|
32
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
33
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
34
|
+
resourceInputs["members"] = args ? args.members : undefined;
|
|
35
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
36
|
+
resourceInputs["organizationName"] = args ? args.organizationName : undefined;
|
|
37
|
+
resourceInputs["teamType"] = args ? args.teamType : undefined;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
41
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
42
|
+
resourceInputs["members"] = undefined /*out*/;
|
|
43
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
44
|
+
resourceInputs["organizationName"] = undefined /*out*/;
|
|
45
|
+
resourceInputs["teamType"] = undefined /*out*/;
|
|
46
|
+
}
|
|
47
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
48
|
+
super(Team.__pulumiType, name, resourceInputs, opts);
|
|
49
|
+
}
|
|
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
|
+
}
|
|
72
|
+
exports.Team = Team;
|
|
73
|
+
/** @internal */
|
|
74
|
+
Team.__pulumiType = 'pulumiservice:index:Team';
|
|
75
|
+
//# sourceMappingURL=team.js.map
|
package/team.js.map
ADDED
|
@@ -0,0 +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;IAoD3C;;;;;;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,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7D,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;aACnE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,aAAa,CAAC,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AC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AAzBL,oBAyFC;AA5EG,gBAAgB;AACO,iBAAY,GAAG,0BAA0B,CAAC"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
|
+
function getEnv(...vars) {
|
|
7
|
+
for (const v of vars) {
|
|
8
|
+
const value = process.env[v];
|
|
9
|
+
if (value) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
exports.getEnv = getEnv;
|
|
16
|
+
function getEnvBoolean(...vars) {
|
|
17
|
+
const s = getEnv(...vars);
|
|
18
|
+
if (s !== undefined) {
|
|
19
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
20
|
+
// Terraform uses internally when parsing boolean values.
|
|
21
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
31
|
+
function getEnvNumber(...vars) {
|
|
32
|
+
const s = getEnv(...vars);
|
|
33
|
+
if (s !== undefined) {
|
|
34
|
+
const f = parseFloat(s);
|
|
35
|
+
if (!isNaN(f)) {
|
|
36
|
+
return f;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
exports.getEnvNumber = getEnvNumber;
|
|
42
|
+
function getVersion() {
|
|
43
|
+
let version = require('./package.json').version;
|
|
44
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
45
|
+
// If there is a v, strip it off.
|
|
46
|
+
if (version.indexOf('v') === 0) {
|
|
47
|
+
version = version.slice(1);
|
|
48
|
+
}
|
|
49
|
+
return version;
|
|
50
|
+
}
|
|
51
|
+
exports.getVersion = getVersion;
|
|
52
|
+
/** @internal */
|
|
53
|
+
function resourceOptsDefaults() {
|
|
54
|
+
return { version: getVersion() };
|
|
55
|
+
}
|
|
56
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
57
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,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AC7E,iCAAiC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC9B;IACD,OAAO,OAAO,CAAC;AACnB,CAAC;AARD,gCAQC;AAED,gBAAgB;AAChB,SAAgB,oBAAoB;IAChC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC;AACrC,CAAC;AAFD,oDAEC"}
|
package/webhook.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Webhook extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Webhook 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): Webhook;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Webhook. 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 Webhook;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates whether this webhook is enabled or not.
|
|
22
|
+
*/
|
|
23
|
+
readonly active: pulumi.Output<boolean | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The friendly name displayed in the Pulumi Service.
|
|
26
|
+
*/
|
|
27
|
+
readonly displayName: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Webhook identifier generated by pulumi service.
|
|
30
|
+
*/
|
|
31
|
+
readonly name: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the organization.
|
|
34
|
+
*/
|
|
35
|
+
readonly organizationName: pulumi.Output<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* URL to send request to.
|
|
38
|
+
*/
|
|
39
|
+
readonly payloadUrl: pulumi.Output<string | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Optional. secret used as the HMAC key. See [webhook docs](https://www.pulumi.com/docs/intro/pulumi-service/webhooks/#headers) for more information.
|
|
42
|
+
*/
|
|
43
|
+
readonly secret: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a Webhook resource with the given unique name, arguments, and options.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resource.
|
|
48
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
49
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
50
|
+
*/
|
|
51
|
+
constructor(name: string, args: WebhookArgs, opts?: pulumi.CustomResourceOptions);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The set of arguments for constructing a Webhook resource.
|
|
55
|
+
*/
|
|
56
|
+
export interface WebhookArgs {
|
|
57
|
+
/**
|
|
58
|
+
* Indicates whether this webhook is enabled or not.
|
|
59
|
+
*/
|
|
60
|
+
active: pulumi.Input<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* The friendly name displayed in the Pulumi Service.
|
|
63
|
+
*/
|
|
64
|
+
displayName: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Name of the organization.
|
|
67
|
+
*/
|
|
68
|
+
organizationName: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* URL to send request to.
|
|
71
|
+
*/
|
|
72
|
+
payloadUrl: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Optional. secret used as the HMAC key. See [webhook docs](https://www.pulumi.com/docs/intro/pulumi-service/webhooks/#headers) for more information.
|
|
75
|
+
*/
|
|
76
|
+
secret?: pulumi.Input<string>;
|
|
77
|
+
}
|
package/webhook.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
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.Webhook = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
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
|
+
*/
|
|
11
|
+
class Webhook extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a Webhook resource with the given unique name, arguments, and options.
|
|
14
|
+
*
|
|
15
|
+
* @param name The _unique_ name of the resource.
|
|
16
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
17
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
18
|
+
*/
|
|
19
|
+
constructor(name, args, opts) {
|
|
20
|
+
let resourceInputs = {};
|
|
21
|
+
opts = opts || {};
|
|
22
|
+
if (!opts.id) {
|
|
23
|
+
if ((!args || args.active === undefined) && !opts.urn) {
|
|
24
|
+
throw new Error("Missing required property 'active'");
|
|
25
|
+
}
|
|
26
|
+
if ((!args || args.displayName === undefined) && !opts.urn) {
|
|
27
|
+
throw new Error("Missing required property 'displayName'");
|
|
28
|
+
}
|
|
29
|
+
if ((!args || args.organizationName === undefined) && !opts.urn) {
|
|
30
|
+
throw new Error("Missing required property 'organizationName'");
|
|
31
|
+
}
|
|
32
|
+
if ((!args || args.payloadUrl === undefined) && !opts.urn) {
|
|
33
|
+
throw new Error("Missing required property 'payloadUrl'");
|
|
34
|
+
}
|
|
35
|
+
resourceInputs["active"] = args ? args.active : undefined;
|
|
36
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
37
|
+
resourceInputs["organizationName"] = args ? args.organizationName : undefined;
|
|
38
|
+
resourceInputs["payloadUrl"] = args ? args.payloadUrl : undefined;
|
|
39
|
+
resourceInputs["secret"] = (args === null || args === void 0 ? void 0 : args.secret) ? pulumi.secret(args.secret) : undefined;
|
|
40
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
resourceInputs["active"] = undefined /*out*/;
|
|
44
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
45
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
46
|
+
resourceInputs["organizationName"] = undefined /*out*/;
|
|
47
|
+
resourceInputs["payloadUrl"] = undefined /*out*/;
|
|
48
|
+
resourceInputs["secret"] = undefined /*out*/;
|
|
49
|
+
}
|
|
50
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
51
|
+
const secretOpts = { additionalSecretOutputs: ["secret"] };
|
|
52
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
53
|
+
super(Webhook.__pulumiType, name, resourceInputs, opts);
|
|
54
|
+
}
|
|
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
|
+
}
|
|
77
|
+
exports.Webhook = Webhook;
|
|
78
|
+
/** @internal */
|
|
79
|
+
Webhook.__pulumiType = 'pulumiservice:index:Webhook';
|
|
80
|
+
//# sourceMappingURL=webhook.js.map
|
package/webhook.js.map
ADDED
|
@@ -0,0 +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;IAoD9C;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAmC;QAC5E,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,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,g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