@pulumi/delivery 0.0.0-alpha.0 → 0.1.0-alpha.1795000755
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 +43 -0
- package/agent.d.ts +45 -0
- package/agent.d.ts.map +1 -0
- package/agent.js +84 -0
- package/agent.js.map +1 -0
- package/allOf.d.ts +129 -0
- package/allOf.d.ts.map +1 -0
- package/allOf.js +81 -0
- package/allOf.js.map +1 -0
- package/anyOf.d.ts +129 -0
- package/anyOf.d.ts.map +1 -0
- package/anyOf.js +81 -0
- package/anyOf.js.map +1 -0
- package/approval.d.ts +132 -0
- package/approval.d.ts.map +1 -0
- package/approval.js +81 -0
- package/approval.js.map +1 -0
- package/artifact.d.ts +46 -0
- package/artifact.d.ts.map +1 -0
- package/artifact.js +86 -0
- package/artifact.js.map +1 -0
- package/azureDevOpsSource.d.ts +42 -0
- package/azureDevOpsSource.d.ts.map +1 -0
- package/azureDevOpsSource.js +77 -0
- package/azureDevOpsSource.js.map +1 -0
- package/bitbucketSource.d.ts +42 -0
- package/bitbucketSource.d.ts.map +1 -0
- package/bitbucketSource.js +77 -0
- package/bitbucketSource.js.map +1 -0
- package/config/index.d.ts +2 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +6 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +36 -0
- package/config/vars.js.map +1 -0
- package/gitHubSource.d.ts +56 -0
- package/gitHubSource.d.ts.map +1 -0
- package/gitHubSource.js +91 -0
- package/gitHubSource.js.map +1 -0
- package/gitLabSource.d.ts +42 -0
- package/gitLabSource.d.ts.map +1 -0
- package/gitLabSource.js +77 -0
- package/gitLabSource.js.map +1 -0
- package/http.d.ts +184 -0
- package/http.d.ts.map +1 -0
- package/http.js +91 -0
- package/http.js.map +1 -0
- package/index.d.ts +59 -0
- package/index.d.ts.map +1 -0
- package/index.js +125 -0
- package/index.js.map +1 -0
- package/job.d.ts +90 -0
- package/job.d.ts.map +1 -0
- package/job.js +108 -0
- package/job.js.map +1 -0
- package/manual.d.ts +124 -0
- package/manual.d.ts.map +1 -0
- package/manual.js +79 -0
- package/manual.js.map +1 -0
- package/package.json +27 -7
- package/pipeline.d.ts +50 -0
- package/pipeline.d.ts.map +1 -0
- package/pipeline.js +81 -0
- package/pipeline.js.map +1 -0
- package/pipelineSource.d.ts +68 -0
- package/pipelineSource.d.ts.map +1 -0
- package/pipelineSource.js +98 -0
- package/pipelineSource.js.map +1 -0
- package/provider.d.ts +27 -0
- package/provider.d.ts.map +1 -0
- package/provider.js +62 -0
- package/provider.js.map +1 -0
- package/stacks.d.ts +64 -0
- package/stacks.d.ts.map +1 -0
- package/stacks.js +95 -0
- package/stacks.js.map +1 -0
- package/stage.d.ts +52 -0
- package/stage.d.ts.map +1 -0
- package/stage.js +85 -0
- package/stage.js.map +1 -0
- package/types/enums/index.d.ts +12 -0
- package/types/enums/index.d.ts.map +1 -0
- package/types/enums/index.js +13 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +5 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +36 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +241 -0
- package/types/input.d.ts.map +1 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +92 -0
- package/types/output.d.ts.map +1 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +5 -0
- package/utilities.d.ts.map +1 -0
- package/utilities.js +114 -0
- package/utilities.js.map +1 -0
- package/workflowsRuntime.d.ts +48 -0
- package/workflowsRuntime.d.ts.map +1 -0
- package/workflowsRuntime.js +96 -0
- package/workflowsRuntime.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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Pulumi Delivery
|
|
2
|
+
|
|
3
|
+
Delivery needs Pulumi CLI v3.272.0 or later.
|
|
4
|
+
|
|
5
|
+
The repository has these directories.
|
|
6
|
+
|
|
7
|
+
- `provider/`: Go resource provider. `provider/cmd/pulumi-resource-delivery/schema.json` is the committed schema, written from the built provider.
|
|
8
|
+
- `sdk/`: SDKs for Node.js, Python, .NET, Go and Java, generated from the schema (`make generate`, never edited by hand). `sdk/go.mod` is the Go SDK module and is kept by hand.
|
|
9
|
+
- `examples/basic/`, `examples/python/`, `examples/yaml/`, `examples/hcl/`: a small pipeline program in TypeScript, Python, YAML and HCL.
|
|
10
|
+
- `examples/compile/`: Go and .NET programs that check the generated SDKs compile. `examples/*_test.go` runs those checks and a `pulumi preview` of every program, one file per language. A preview sends nothing to Pulumi Cloud, so the tests need no credentials.
|
|
11
|
+
- `docs/`: `_index.md` is the registry guide. `ONBOARDING.md` is the onboarding guide.
|
|
12
|
+
|
|
13
|
+
## Develop
|
|
14
|
+
|
|
15
|
+
CI files (`Makefile`, `.github/workflows/`, `.config/`, `scripts/`) are generated by [pulumi/ci-mgmt](https://github.com/pulumi/ci-mgmt) from `.ci-mgmt.yaml`. Do not edit them; change `.ci-mgmt.yaml`, `.mk/*.mk` or `sdk-hooks.mk` instead.
|
|
16
|
+
|
|
17
|
+
Tools (Go, Node.js, Python, .NET, Java, Gradle, the Pulumi CLI and others) come from [mise](https://mise.jdx.dev/) and are pinned in `.config/mise.toml`. Install mise and run `make`; it installs the tools.
|
|
18
|
+
|
|
19
|
+
- `make build`: build the provider and build and install all SDKs.
|
|
20
|
+
- `make generate`: rewrite the schema and all SDKs. Commit the result.
|
|
21
|
+
- `make test_provider`: run the provider tests.
|
|
22
|
+
- `make test`: run the example tests in `examples/`. Run `make build` first and put `bin/` on `PATH`. `make TESTTAGS=go test` runs one language (`nodejs`, `python`, `dotnet`, `go`, `java`).
|
|
23
|
+
|
|
24
|
+
## Install the plugin
|
|
25
|
+
|
|
26
|
+
Releases and prereleases are on get.pulumi.com. They are not in the registry index.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pulumi plugin install resource delivery <version>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
To install a local build:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
pulumi plugin install resource delivery <version> -f pulumi-resource-delivery-v<version>-darwin-arm64.tar.gz
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Release
|
|
39
|
+
|
|
40
|
+
1. Push the tag `vX.Y.Z` or `vX.Y.Z-alpha.N`. The `ci` workflow builds the plugin for each platform, uploads it to get.pulumi.com and publishes the SDKs. The repository holds no version; local builds and the committed SDK say `0.0.0-alpha.0+dev`.
|
|
41
|
+
2. A stable tag (`vX.Y.Z`) also creates a GitHub release and asks [pulumi/registry](https://github.com/pulumi/registry) to rebuild the package page from `docs/_index.md` and the schema at that tag. A prerelease tag does neither.
|
|
42
|
+
|
|
43
|
+
Every push to `main` also publishes: it uploads an alpha build of the plugin and publishes alpha versions of the Node.js, Python and .NET SDKs.
|
package/agent.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { Stage } from "./index";
|
|
3
|
+
/**
|
|
4
|
+
* Declares a structured Neo agent member of a Delivery stage. Delivery starts one invocation for each release after the stage and member dependencies are ready.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Agent extends pulumi.ComponentResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns true if the given object is an instance of Agent. This is designed to work even
|
|
9
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
10
|
+
*/
|
|
11
|
+
static isInstance(obj: any): obj is Agent;
|
|
12
|
+
readonly response: pulumi.Output<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a Agent resource with the given unique name, arguments, and options.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resource.
|
|
17
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
18
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
19
|
+
*/
|
|
20
|
+
constructor(name: string, args: AgentArgs, opts?: pulumi.ComponentResourceOptions);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The set of arguments for constructing a Agent resource.
|
|
24
|
+
*/
|
|
25
|
+
export interface AgentArgs {
|
|
26
|
+
/**
|
|
27
|
+
* Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
|
|
28
|
+
*/
|
|
29
|
+
agentDefinitionId: pulumi.Input<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The single user message sent to the agent for each release.
|
|
32
|
+
*/
|
|
33
|
+
prompt: pulumi.Input<string>;
|
|
34
|
+
/**
|
|
35
|
+
* JSON Schema the final agent response must satisfy.
|
|
36
|
+
*/
|
|
37
|
+
responseSchema: pulumi.Input<{
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* Stage that contains this agent member.
|
|
42
|
+
*/
|
|
43
|
+
stage: pulumi.Input<Stage>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=agent.d.ts.map
|
package/agent.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../agent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B;;GAEG;AACH,qBAAa,KAAM,SAAQ,MAAM,CAAC,iBAAiB;IAI/C;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,KAAK;IAOhD,SAAgC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAE7D;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;CA2BpF;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC,CAAC;IACnD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;CAC9B"}
|
package/agent.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Agent = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Declares a structured Neo agent member of a Delivery stage. Delivery starts one invocation for each release after the stage and member dependencies are ready.
|
|
33
|
+
*/
|
|
34
|
+
class Agent extends pulumi.ComponentResource {
|
|
35
|
+
/** @internal */
|
|
36
|
+
static __pulumiType = 'delivery:index:Agent';
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of Agent. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj) {
|
|
42
|
+
if (obj === undefined || obj === null) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return obj['__pulumiType'] === Agent.__pulumiType;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Create a Agent resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name, args, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (!opts.id) {
|
|
58
|
+
if (args?.agentDefinitionId === undefined && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'agentDefinitionId'");
|
|
60
|
+
}
|
|
61
|
+
if (args?.prompt === undefined && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'prompt'");
|
|
63
|
+
}
|
|
64
|
+
if (args?.responseSchema === undefined && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'responseSchema'");
|
|
66
|
+
}
|
|
67
|
+
if (args?.stage === undefined && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'stage'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["agentDefinitionId"] = args?.agentDefinitionId;
|
|
71
|
+
resourceInputs["prompt"] = args?.prompt;
|
|
72
|
+
resourceInputs["responseSchema"] = args?.responseSchema;
|
|
73
|
+
resourceInputs["stage"] = args?.stage;
|
|
74
|
+
resourceInputs["response"] = undefined /*out*/;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
resourceInputs["response"] = undefined /*out*/;
|
|
78
|
+
}
|
|
79
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
|
+
super(Agent.__pulumiType, name, resourceInputs, opts, true /*remote*/);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.Agent = Agent;
|
|
84
|
+
//# sourceMappingURL=agent.js.map
|
package/agent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../agent.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAIzC;;GAEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,iBAAiB;IAC/C,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,sBAAsB,CAAC;IAE7D;;;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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IAID;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAe,EAAE,IAAsC;QAC7E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,iBAAiB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;aACpE;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,cAAc,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;aAAM;YACH,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3E,CAAC;;AAlDL,sBAmDC"}
|
package/allOf.d.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Builds an all rule for the when property of a Stage. The rule passes when every child rule passes.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as delivery from "@pulumi/delivery";
|
|
11
|
+
*
|
|
12
|
+
* const prod = new delivery.Stage("prod", {
|
|
13
|
+
* pipeline,
|
|
14
|
+
* from: [dev],
|
|
15
|
+
* when: delivery.allOfOutput({
|
|
16
|
+
* rules: [delivery.approvalOutput({ approvers: ["your-username"] })],
|
|
17
|
+
* }),
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function allOf(args: AllOfArgs, opts?: pulumi.InvokeOptions): Promise<AllOfResult>;
|
|
22
|
+
/**
|
|
23
|
+
* Settings of an all or any rule.
|
|
24
|
+
*/
|
|
25
|
+
export interface AllOfArgs {
|
|
26
|
+
/**
|
|
27
|
+
* Rule name. Omit it to let Delivery assign one.
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Child rules. At least one is required. A rule can contain other rules, up to three levels deep.
|
|
32
|
+
*/
|
|
33
|
+
rules: inputs.Rule[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Rule that a release must pass to enter a stage. A rule can contain other rules, up to three levels deep.
|
|
37
|
+
*/
|
|
38
|
+
export interface AllOfResult {
|
|
39
|
+
/**
|
|
40
|
+
* Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
|
|
41
|
+
*/
|
|
42
|
+
readonly approvers?: string[];
|
|
43
|
+
/**
|
|
44
|
+
* HTTP request body. Secret values stay secret.
|
|
45
|
+
*/
|
|
46
|
+
readonly body?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
|
|
49
|
+
*/
|
|
50
|
+
readonly count?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Text for the person who continues a manual gate, for example what to check first.
|
|
53
|
+
*/
|
|
54
|
+
readonly description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* HTTP request headers. Secret values stay secret.
|
|
57
|
+
*/
|
|
58
|
+
readonly headers?: {
|
|
59
|
+
[key: string]: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
|
|
63
|
+
*/
|
|
64
|
+
readonly headersEnvironment?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
|
|
67
|
+
*/
|
|
68
|
+
readonly interval?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Kind of the rule. Valid values are approval, http, manual, all, and any.
|
|
71
|
+
*/
|
|
72
|
+
readonly kind: string;
|
|
73
|
+
/**
|
|
74
|
+
* HTTP request method. The default is GET.
|
|
75
|
+
*/
|
|
76
|
+
readonly method?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Rule name. Omit it to let Delivery assign one.
|
|
79
|
+
*/
|
|
80
|
+
readonly name?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Child rules for all and any rules. At least one is required.
|
|
83
|
+
*/
|
|
84
|
+
readonly rules?: outputs.Rule[];
|
|
85
|
+
/**
|
|
86
|
+
* JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
|
|
87
|
+
*/
|
|
88
|
+
readonly successExpression?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
|
|
91
|
+
*/
|
|
92
|
+
readonly timeout?: string;
|
|
93
|
+
/**
|
|
94
|
+
* URL to call. Required for http rules.
|
|
95
|
+
*/
|
|
96
|
+
readonly url?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Builds an all rule for the when property of a Stage. The rule passes when every child rule passes.
|
|
100
|
+
*
|
|
101
|
+
* ## Example Usage
|
|
102
|
+
*
|
|
103
|
+
* ```typescript
|
|
104
|
+
* import * as delivery from "@pulumi/delivery";
|
|
105
|
+
*
|
|
106
|
+
* const prod = new delivery.Stage("prod", {
|
|
107
|
+
* pipeline,
|
|
108
|
+
* from: [dev],
|
|
109
|
+
* when: delivery.allOfOutput({
|
|
110
|
+
* rules: [delivery.approvalOutput({ approvers: ["your-username"] })],
|
|
111
|
+
* }),
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export declare function allOfOutput(args: AllOfOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<AllOfResult>;
|
|
116
|
+
/**
|
|
117
|
+
* Settings of an all or any rule.
|
|
118
|
+
*/
|
|
119
|
+
export interface AllOfOutputArgs {
|
|
120
|
+
/**
|
|
121
|
+
* Rule name. Omit it to let Delivery assign one.
|
|
122
|
+
*/
|
|
123
|
+
name?: pulumi.Input<string | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* Child rules. At least one is required. A rule can contain other rules, up to three levels deep.
|
|
126
|
+
*/
|
|
127
|
+
rules: pulumi.Input<pulumi.Input<inputs.RuleArgs>[]>;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=allOf.d.ts.map
|
package/allOf.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allOf.d.ts","sourceRoot":"","sources":["../allOf.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAMxF;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACzB;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAMhH;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;CACxD"}
|
package/allOf.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.allOfOutput = exports.allOf = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Builds an all rule for the when property of a Stage. The rule passes when every child rule passes.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as delivery from "@pulumi/delivery";
|
|
38
|
+
*
|
|
39
|
+
* const prod = new delivery.Stage("prod", {
|
|
40
|
+
* pipeline,
|
|
41
|
+
* from: [dev],
|
|
42
|
+
* when: delivery.allOfOutput({
|
|
43
|
+
* rules: [delivery.approvalOutput({ approvers: ["your-username"] })],
|
|
44
|
+
* }),
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
function allOf(args, opts) {
|
|
49
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
50
|
+
return pulumi.runtime.invoke("delivery:index:allOf", {
|
|
51
|
+
"name": args.name,
|
|
52
|
+
"rules": args.rules,
|
|
53
|
+
}, opts);
|
|
54
|
+
}
|
|
55
|
+
exports.allOf = allOf;
|
|
56
|
+
/**
|
|
57
|
+
* Builds an all rule for the when property of a Stage. The rule passes when every child rule passes.
|
|
58
|
+
*
|
|
59
|
+
* ## Example Usage
|
|
60
|
+
*
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as delivery from "@pulumi/delivery";
|
|
63
|
+
*
|
|
64
|
+
* const prod = new delivery.Stage("prod", {
|
|
65
|
+
* pipeline,
|
|
66
|
+
* from: [dev],
|
|
67
|
+
* when: delivery.allOfOutput({
|
|
68
|
+
* rules: [delivery.approvalOutput({ approvers: ["your-username"] })],
|
|
69
|
+
* }),
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
function allOfOutput(args, opts) {
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
75
|
+
return pulumi.runtime.invokeOutput("delivery:index:allOf", {
|
|
76
|
+
"name": args.name,
|
|
77
|
+
"rules": args.rules,
|
|
78
|
+
}, opts);
|
|
79
|
+
}
|
|
80
|
+
exports.allOfOutput = allOfOutput;
|
|
81
|
+
//# sourceMappingURL=allOf.js.map
|
package/allOf.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allOf.js","sourceRoot":"","sources":["../allOf.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,KAAK,CAAC,IAAe,EAAE,IAA2B;IAC9D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE;QACjD,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sBAMC;AA6ED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAAiC;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sBAAsB,EAAE;QACvD,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kCAMC"}
|