@flit/cdk-pipeline 1.0.25 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.txt 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 CHANGED
@@ -1,5 +1,343 @@
1
1
  This library exposes a highly customizable and extensible L3 pipeline construct intended as an alternative to the CDK native L3 [CodePipeline](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html) construct which has some inherent limitations in capability and extensibility.
2
2
 
3
- The linked documentation provides the tools and documentation to get your own pipeline up and running and build your own custom segments.
3
+ The documentation provides the tools and documentation to get your own pipeline up and running and build your own custom segments.
4
4
 
5
- ### [Documentation](https://docs.jumper.de/modules/_flit_cdk_pipeline.html)
5
+ ## Usage
6
+
7
+ ### Installation
8
+
9
+ The package is available on [NPM](https://www.npmjs.com/package/@flit/cdk-pipeline) and can be installed using your package manager of choice:
10
+
11
+ ```bash
12
+ npm i @flit/cdk-pipeline
13
+ ```
14
+
15
+ ```bash
16
+ pnpm add @flit/cdk-pipeline
17
+ ```
18
+
19
+ ```bash
20
+ yarn add @flit/cdk-pipeline
21
+ ```
22
+
23
+ ### Basics
24
+
25
+ The snippet bellow is a basic example of a pipeline which will run whenever a change is detected in a GitHub repository. The pipeline will update itself and, deploy and update a user defined stack. This example demonstrates the three basic elements that make up a pipeline:
26
+
27
+ #### - Pipeline
28
+
29
+ The `Pipeline` construct will create a CloudFormation Stack which contains the pipeline and all of the required peripheral resources to make it work.
30
+
31
+ #### - Segment
32
+
33
+ A `Segment` is simply a pre-configured set of pipeline actions which together represent a commonly used CI/CD pattern, like for example building and deploying a stack.
34
+
35
+ To build properly, a Pipeline requires at least one SourceSegment, exactly one PipelineSegment and at least one other segment.
36
+
37
+ #### - Artifact
38
+
39
+ An `Artifact` represents a pipeline artifact which can be used to pass information between stages. Every artifact needs to be the output of exactly one Segment and can be consumed by any segments that need that output.
40
+
41
+ ```typescript
42
+ import { App, SecretValue, Stack } from "aws-cdk-lib";
43
+ import {
44
+ Pipeline,
45
+ GitHubSourceSegment,
46
+ PipelineSegment,
47
+ StackSegment,
48
+ Artifact,
49
+ } from "@flit/cdk-pipeline";
50
+
51
+ const APP = new App();
52
+
53
+ const SOURCE_ARTIFACT = new Artifact();
54
+ const BUILD_ARTIFACT = new Artifact();
55
+
56
+ new Pipeline(APP, "Pipeline", {
57
+ rootDir: "./",
58
+ segments: [
59
+ new CodeStarSourceSegment({
60
+ output: SOURCE_ARTIFACT,
61
+ connectionArn: "code-star-connection-arn",
62
+ owner: "owner-name",
63
+ repository: "repo-name",
64
+ branch: "branch-name",
65
+ }),
66
+ new PipelineSegment({
67
+ input: SOURCE_ARTIFACT,
68
+ output: BUILD_ARTIFACT,
69
+ project: {
70
+ environment: {
71
+ computeType: ComputeType.MEDIUM,
72
+ buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,
73
+ privileged: true,
74
+ },
75
+ buildSpec: BuildSpec.fromObject({
76
+ version: "0.2",
77
+ phases: {
78
+ install: {
79
+ "runtime-versions": {
80
+ nodejs: "latest",
81
+ },
82
+ commands: ["npm i -g npm@latest", "npm ci"],
83
+ },
84
+ build: {
85
+ commands: "cdk synth --strict --quiet",
86
+ },
87
+ },
88
+ }),
89
+ },
90
+ }),
91
+ new StackSegment({
92
+ stack: new Stack(APP, "BackEnd"),
93
+ input: BUILD_ARTIFACT,
94
+ }),
95
+ ],
96
+ });
97
+ ```
98
+
99
+ The above code would produce a pipeline similar to this:
100
+
101
+ <img src="./media/pipeline-ouput-example.png?raw=true" alt="alt text" width="300px">
102
+
103
+ ### Multiple stacks
104
+
105
+ To add another stack to the pipeline you simply add another `StackSegment` with a new stack instance and the pipeline will handle the rest.
106
+
107
+ ```typescript
108
+ import { App, SecretValue, Stack } from "aws-cdk-lib";
109
+ import {
110
+ Pipeline,
111
+ GitHubSourceSegment,
112
+ PipelineSegment,
113
+ StackSegment,
114
+ Artifact,
115
+ } from "@flit/cdk-pipeline";
116
+
117
+ const APP = new App();
118
+
119
+ const SOURCE_ARTIFACT = new Artifact();
120
+ const BUILD_ARTIFACT = new Artifact();
121
+
122
+ new Pipeline(APP, "Pipeline", {
123
+ rootDir: "./",
124
+ segments: [
125
+ new CodeStarSourceSegment({
126
+ output: SOURCE_ARTIFACT,
127
+ connectionArn: "code-star-connection-arn",
128
+ owner: "owner-name",
129
+ repository: "repo-name",
130
+ branch: "branch-name",
131
+ }),
132
+ new PipelineSegment({
133
+ input: SOURCE_ARTIFACT,
134
+ output: BUILD_ARTIFACT,
135
+ project: {
136
+ environment: {
137
+ computeType: ComputeType.MEDIUM,
138
+ buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,
139
+ privileged: true,
140
+ },
141
+ buildSpec: BuildSpec.fromObject({
142
+ version: "0.2",
143
+ phases: {
144
+ install: {
145
+ "runtime-versions": {
146
+ nodejs: "latest",
147
+ },
148
+ commands: ["npm i -g npm@latest", "npm ci"],
149
+ },
150
+ build: {
151
+ commands: "cdk synth --strict --quiet",
152
+ },
153
+ },
154
+ }),
155
+ },
156
+ }),
157
+ new StackSegment({
158
+ stack: new Stack(APP, "BackEnd"),
159
+ input: BUILD_ARTIFACT,
160
+ }),
161
+ new StackSegment({
162
+ stack: new Stack(APP, "FrontEnd"),
163
+ input: BUILD_ARTIFACT,
164
+ }),
165
+ ],
166
+ });
167
+ ```
168
+
169
+ ### More complex example
170
+
171
+ In some cases you might have a build that bakes API endpoints generated by a previous stage into the stack assets during the build stage. Using the CDK native L3 [CodePipeline](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html) construct makes this hard, but with this more flexible setup you can run another build for any stack that needs it, and use the previous stacks outputs in that build.
172
+
173
+ ```typescript
174
+ import { App, SecretValue, Stack } from "aws-cdk-lib";
175
+ import {
176
+ Pipeline,
177
+ GitHubSourceSegment,
178
+ PipelineSegment,
179
+ StackSegment,
180
+ Artifact,
181
+ } from "@flit/cdk-pipeline";
182
+
183
+ const APP = new App();
184
+
185
+ const SOURCE_ARTIFACT = new Artifact();
186
+ const BUILD_ARTIFACT = new Artifact();
187
+ const FRONT_END_OUTPUT_ARTIFACT = new Artifact();
188
+
189
+ new Pipeline(APP, "Pipeline", {
190
+ rootDir: "./",
191
+ segments: [
192
+ new CodeStarSourceSegment({
193
+ output: SOURCE_ARTIFACT,
194
+ connectionArn: "code-star-connection-arn",
195
+ owner: "owner-name",
196
+ repository: "repo-name",
197
+ branch: "branch-name",
198
+ }),
199
+ new PipelineSegment({
200
+ input: SOURCE_ARTIFACT,
201
+ output: BUILD_ARTIFACT,
202
+ project: {
203
+ environment: {
204
+ computeType: ComputeType.MEDIUM,
205
+ buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,
206
+ privileged: true,
207
+ },
208
+ buildSpec: BuildSpec.fromObject({
209
+ version: "0.2",
210
+ phases: {
211
+ install: {
212
+ "runtime-versions": {
213
+ nodejs: "latest",
214
+ },
215
+ commands: ["npm i -g npm@latest", "npm ci"],
216
+ },
217
+ build: {
218
+ commands: "cdk synth --strict --quiet",
219
+ },
220
+ },
221
+ }),
222
+ },
223
+ }),
224
+ new StackSegment({
225
+ stack: new Stack(APP, "BackEnd"),
226
+ input: BUILD_ARTIFACT,
227
+ output: FRONT_END_OUTPUT_ARTIFACT,
228
+ }),
229
+ new StackSegment({
230
+ stack: new Stack(APP, "FrontEnd"),
231
+ input: [SOURCE_ARTIFACT, FRONT_END_OUTPUT_ARTIFACT],
232
+ project: {
233
+ environment: {
234
+ computeType: ComputeType.MEDIUM,
235
+ buildImage: LinuxBuildImage.AMAZON_LINUX_2_ARM_3,
236
+ privileged: true,
237
+ },
238
+ buildSpec: BuildSpec.fromObject({
239
+ version: "0.2",
240
+ phases: {
241
+ install: {
242
+ "runtime-versions": {
243
+ nodejs: "latest",
244
+ },
245
+ commands: ["npm i -g npm@latest", "npm ci"],
246
+ },
247
+ build: {
248
+ commands: [
249
+ "do something with the STACK_1_OUTPUT_ARTIFACT",
250
+ "cdk synth --strict --quiet",
251
+ ],
252
+ },
253
+ },
254
+ }),
255
+ },
256
+ }),
257
+ ],
258
+ });
259
+ ```
260
+
261
+ This example first build the project, deploys the `Pipeline` and `BackEnd` stacks and then rebuilds the project now with access to the outputs of the `BackEnd` stack. This allows you to now bake in any API endpoints dynamically generated in the `BackEnd` stack.
262
+
263
+ ### Building your own segment
264
+
265
+ The snippet bellow is a basic example showing a custom segment which simply adds a stage with two manual approval steps into the pipeline and allows you to optional give this step a name.
266
+
267
+ Each segment has two components consisting of two distinct classes:
268
+
269
+ ### - Segment
270
+
271
+ The main segment class is the class that will be used in your pipeline definition, and can be created by extending the `Segment` abstract class.
272
+
273
+ This class **should not** itself create any actual CDK constructs and is simply there to collect configuration trough the `constructor`. The `constructor` should take a single parameter called `props` which is a descendant of the `SegmentProps` interface.
274
+
275
+ The segment class also has to define the `construct` abstract function which returns an instance of a descendant of the `SegmentConstructed` abstract class.
276
+
277
+ ### - SegmentConstructed
278
+
279
+ This class will be returned by the `construct` function of your segment class and is itself a CDK construct. So in this class you can now allocate the CDK resources this segment requires as you are used to in any other CDK application.
280
+
281
+ You can pass any configuration information previously collected in the segment class trough the constructor.
282
+
283
+ ```typescript
284
+ import { IAction } from "aws-cdk-lib/aws-codepipeline";
285
+ import { ManualApprovalAction } from "aws-cdk-lib/aws-codepipeline-actions";
286
+
287
+ import { Segment, SegmentConstructed } from "./segment";
288
+ import { Pipeline } from "./pipeline";
289
+
290
+ export interface RequireApprovalSegmentProps {
291
+ readonly name?: string;
292
+ }
293
+
294
+ /**
295
+ * @category Segments
296
+ */
297
+ export class DoubleApprovalSegment extends Segment {
298
+ readonly props: RequireApprovalSegmentProps;
299
+
300
+ constructor(props: RequireApprovalSegmentProps) {
301
+ super({ ...props, input: undefined, output: undefined });
302
+ this.props = props;
303
+ }
304
+
305
+ construct(scope: Pipeline): SegmentConstructed {
306
+ return new RequireApprovalSegmentConstructed(
307
+ scope,
308
+ `RequireApproval`,
309
+ this.props,
310
+ );
311
+ }
312
+ }
313
+
314
+ export interface RequireApprovalSegmentConstructedProps {
315
+ readonly name?: string;
316
+ }
317
+
318
+ export class RequireApprovalSegmentConstructed extends SegmentConstructed {
319
+ readonly name: string;
320
+ readonly actions: IAction[];
321
+
322
+ constructor(
323
+ scope: Pipeline,
324
+ id: string,
325
+ props: RequireApprovalSegmentConstructedProps,
326
+ ) {
327
+ super(scope, id);
328
+
329
+ this.name = props.name ?? id;
330
+
331
+ this.actions = [
332
+ new ManualApprovalAction({
333
+ actionName: "ApproveChanges1",
334
+ runOrder: 1,
335
+ }),
336
+ new ManualApprovalAction({
337
+ actionName: "ApproveChanges2",
338
+ runOrder: 2,
339
+ }),
340
+ ];
341
+ }
342
+ }
343
+ ```
package/dist/artifact.js CHANGED
@@ -26,5 +26,5 @@ class Artifact extends aws_codepipeline_1.Artifact {
26
26
  }
27
27
  exports.Artifact = Artifact;
28
28
  _a = JSII_RTTI_SYMBOL_1;
29
- Artifact[_a] = { fqn: "@flit/cdk-pipeline.Artifact", version: "1.0.25" };
29
+ Artifact[_a] = { fqn: "@flit/cdk-pipeline.Artifact", version: "1.1.0" };
30
30
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYXJ0aWZhY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxtRUFBdUU7QUFJdkUsTUFBYSxRQUFTLFNBQVEsMkJBQVc7SUFHdkMsWUFBWSxZQUFxQjtRQUMvQixLQUFLLENBQUMsWUFBWSxDQUFDLENBQUM7UUFGZCxjQUFTLEdBQWMsRUFBRSxDQUFDO0lBR2xDLENBQUM7SUFDRCxPQUFPLENBQUMsUUFBaUI7UUFDdk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jogU2VnbWVudCkge1xuICAgIHRoaXMuY29uc3VtZXJzLnB1c2gocHJvZHVjZXIpO1xuICB9XG4gIG9idGFpblByb2R1Y2VyKCk6IFNlZ21lbnQgfCB1bmRlZmluZWQge1xuICAgIHJldHVybiB0aGlzLnByb2R1Y2VyO1xuICB9XG4gIG9idGFpbkNvbnN1bWVycygpOiBTZWdtZW50W10ge1xuICAgIHJldHVybiB0aGlzLmNvbnN1bWVycztcbiAgfVxufVxuIl19
@@ -23,7 +23,7 @@ class CodeCommitSourceSegment extends source_segment_1.SourceSegment {
23
23
  }
24
24
  exports.CodeCommitSourceSegment = CodeCommitSourceSegment;
25
25
  _a = JSII_RTTI_SYMBOL_1;
26
- CodeCommitSourceSegment[_a] = { fqn: "@flit/cdk-pipeline.CodeCommitSourceSegment", version: "1.0.25" };
26
+ CodeCommitSourceSegment[_a] = { fqn: "@flit/cdk-pipeline.CodeCommitSourceSegment", version: "1.1.0" };
27
27
  class CodeCommitSourceSegmentConstructed extends segment_1.SegmentConstructed {
28
28
  constructor(scope, id, props) {
29
29
  super(scope, id);
@@ -33,5 +33,5 @@ class CodeCommitSourceSegmentConstructed extends segment_1.SegmentConstructed {
33
33
  }
34
34
  exports.CodeCommitSourceSegmentConstructed = CodeCommitSourceSegmentConstructed;
35
35
  _b = JSII_RTTI_SYMBOL_1;
36
- CodeCommitSourceSegmentConstructed[_b] = { fqn: "@flit/cdk-pipeline.CodeCommitSourceSegmentConstructed", version: "1.0.25" };
36
+ CodeCommitSourceSegmentConstructed[_b] = { fqn: "@flit/cdk-pipeline.CodeCommitSourceSegmentConstructed", version: "1.1.0" };
37
37
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS1jb21taXQtc291cmNlLXNlZ21lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29kZS1jb21taXQtc291cmNlLXNlZ21lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW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GlzLmFjdGlvbnMgPSBbbmV3IENvZGVDb21taXRTb3VyY2VBY3Rpb24ocHJvcHMpXTtcbiAgfVxufVxuIl19
@@ -24,7 +24,7 @@ class CodeStarSourceSegment extends source_segment_1.SourceSegment {
24
24
  }
25
25
  exports.CodeStarSourceSegment = CodeStarSourceSegment;
26
26
  _a = JSII_RTTI_SYMBOL_1;
27
- CodeStarSourceSegment[_a] = { fqn: "@flit/cdk-pipeline.CodeStarSourceSegment", version: "1.0.25" };
27
+ CodeStarSourceSegment[_a] = { fqn: "@flit/cdk-pipeline.CodeStarSourceSegment", version: "1.1.0" };
28
28
  class CodeStarSourceSegmentConstructed extends segment_1.SegmentConstructed {
29
29
  constructor(scope, id, props) {
30
30
  super(scope, id);
@@ -34,5 +34,5 @@ class CodeStarSourceSegmentConstructed extends segment_1.SegmentConstructed {
34
34
  }
35
35
  exports.CodeStarSourceSegmentConstructed = CodeStarSourceSegmentConstructed;
36
36
  _b = JSII_RTTI_SYMBOL_1;
37
- CodeStarSourceSegmentConstructed[_b] = { fqn: "@flit/cdk-pipeline.CodeStarSourceSegmentConstructed", version: "1.0.25" };
37
+ CodeStarSourceSegmentConstructed[_b] = { fqn: "@flit/cdk-pipeline.CodeStarSourceSegmentConstructed", version: "1.1.0" };
38
38
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS1zdGFyLXNvdXJjZS1zZWdtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvZGUtc3Rhci1zb3VyY2Utc2VnbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUNBLG1GQUF1RjtBQUl2Rix1Q0FBK0M7QUFDL0MscURBQXFFO0FBV3JFOztHQUVHO0FBQ0gsTUFBYSxxQkFBc0IsU0FBUSw4QkFBYTtJQUV0RCxZQUFZLEtBQWlDO1FBQzNDLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0F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ICByZXBvOiB0aGlzLnByb3BzLnJlcG9zaXRvcnksXG4gICAgfSk7XG4gIH1cbn1cblxuZXhwb3J0IGludGVyZmFjZSBDb2RlU3RhclNvdXJjZVNlZ21lbnRDb25zdHJ1Y3RlZFByb3BzIHtcbiAgcmVhZG9ubHkgb3V0cHV0OiBBcnRpZmFjdDtcbiAgcmVhZG9ubHkgYWN0aW9uTmFtZTogc3RyaW5nO1xuICByZWFkb25seSBjb25uZWN0aW9uQXJuOiBzdHJpbmc7XG4gIHJlYWRvbmx5IG93bmVyOiBzdHJpbmc7XG4gIHJlYWRvbmx5IHJlcG86IHN0cmluZztcbiAgcmVhZG9ubHkgYnJhbmNoPzogc3RyaW5nO1xuICByZWFkb25seSBydW5PcmRlcj86IG51bWJlcjtcbiAgcmVhZG9ubHkgdHJpZ2dlck9uUHVzaD86IGJvb2xlYW47XG4gIHJlYWRvbmx5IHZhcmlhYmxlc05hbWVzcGFjZT86IHN0cmluZztcbn1cblxuZXhwb3J0IGNsYXNzIENvZGVTdGFyU291cmNlU2VnbWVudENvbnN0cnVjdGVkIGV4dGVuZHMgU2VnbWVudENvbnN0cnVjdGVkIHtcbiAgcmVhZG9ubHkgbmFtZTogc3RyaW5nO1xuICByZWFkb25seSBhY3Rpb25zOiBJQWN0aW9uW107XG4gIGNvbnN0cnVjdG9yKFxuICAgIHNjb3BlOiBQaXBlbGluZSxcbiAgICBpZDogc3RyaW5nLFxuICAgIHByb3BzOiBDb2RlU3RhclNvdXJjZVNlZ21lbnRDb25zdHJ1Y3RlZFByb3BzLFxuICApIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuICAgIHRoaXMubmFtZSA9IFwiU291cmNlXCI7XG4gICAgdGhpcy5hY3Rpb25zID0gW25ldyBDb2RlU3RhckNvbm5lY3Rpb25zU291cmNlQWN0aW9uKHByb3BzKV07XG4gIH1cbn1cbiJdfQ==
@@ -24,7 +24,7 @@ class GitHubSourceSegment extends source_segment_1.SourceSegment {
24
24
  }
25
25
  exports.GitHubSourceSegment = GitHubSourceSegment;
26
26
  _a = JSII_RTTI_SYMBOL_1;
27
- GitHubSourceSegment[_a] = { fqn: "@flit/cdk-pipeline.GitHubSourceSegment", version: "1.0.25" };
27
+ GitHubSourceSegment[_a] = { fqn: "@flit/cdk-pipeline.GitHubSourceSegment", version: "1.1.0" };
28
28
  class GitHubSourceSegmentConstructed extends segment_1.SegmentConstructed {
29
29
  constructor(scope, id, props) {
30
30
  super(scope, id);
@@ -34,5 +34,5 @@ class GitHubSourceSegmentConstructed extends segment_1.SegmentConstructed {
34
34
  }
35
35
  exports.GitHubSourceSegmentConstructed = GitHubSourceSegmentConstructed;
36
36
  _b = JSII_RTTI_SYMBOL_1;
37
- GitHubSourceSegmentConstructed[_b] = { fqn: "@flit/cdk-pipeline.GitHubSourceSegmentConstructed", version: "1.0.25" };
37
+ GitHubSourceSegmentConstructed[_b] = { fqn: "@flit/cdk-pipeline.GitHubSourceSegmentConstructed", version: "1.1.0" };
38
38
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2l0LWh1Yi1zb3VyY2Utc2VnbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9naXQtaHViLXNvdXJjZS1zZWdtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQ0EsbUZBRzhDO0FBSzlDLHVDQUErQztBQUMvQyxxREFBcUU7QUFXckU7O0dBRUc7QUFDSCxNQUFhLG1CQUFvQixTQUFRLDhCQUFhO0lBRXBELFlBQVksS0FBK0I7UUFDekMsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2IsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7SUFDckIsQ0FBQztJQUNELFNBQVMsQ0FBQyxLQUFlO1FBQ3ZCLE9BQU8sSUFBSSw4QkFBOEIsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQU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ZXJmYWNlIEdpdEh1YlNvdXJjZVNlZ21lbnRDb25zdHJ1Y3RlZFByb3BzIHtcbiAgcmVhZG9ubHkgb3V0cHV0OiBBcnRpZmFjdDtcbiAgcmVhZG9ubHkgYWN0aW9uTmFtZTogc3RyaW5nO1xuICByZWFkb25seSBvYXV0aFRva2VuOiBTZWNyZXRWYWx1ZTtcbiAgcmVhZG9ubHkgb3duZXI6IHN0cmluZztcbiAgcmVhZG9ubHkgcmVwbzogc3RyaW5nO1xuICByZWFkb25seSBicmFuY2g/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IHJ1bk9yZGVyPzogbnVtYmVyO1xuICByZWFkb25seSB0cmlnZ2VyPzogR2l0SHViVHJpZ2dlcjtcbiAgcmVhZG9ubHkgdmFyaWFibGVzTmFtZXNwYWNlPzogc3RyaW5nO1xufVxuXG5leHBvcnQgY2xhc3MgR2l0SHViU291cmNlU2VnbWVudENvbnN0cnVjdGVkIGV4dGVuZHMgU2VnbWVudENvbnN0cnVjdGVkIHtcbiAgcmVhZG9ubHkgbmFtZTogc3RyaW5nO1xuICByZWFkb25seSBhY3Rpb25zOiBJQWN0aW9uW107XG4gIGNvbnN0cnVjdG9yKFxuICAgIHNjb3BlOiBQaXBlbGluZSxcbiAgICBpZDogc3RyaW5nLFxuICAgIHByb3BzOiBHaXRIdWJTb3VyY2VTZWdtZW50Q29uc3RydWN0ZWRQcm9wcyxcbiAgKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcbiAgICB0aGlzLm5hbWUgPSBcIlNvdXJjZVwiO1xuICAgIHRoaXMuYWN0aW9ucyA9IFtuZXcgR2l0SHViU291cmNlQWN0aW9uKHByb3BzKV07XG4gIH1cbn1cbiJdfQ==
@@ -1,4 +1,6 @@
1
- import { BuildEnvironmentVariable } from "aws-cdk-lib/aws-codebuild";
1
+ import { BuildEnvironmentVariable, ProjectProps } from "aws-cdk-lib/aws-codebuild";
2
+ import { Stack } from "aws-cdk-lib";
3
+ import { IAction } from "aws-cdk-lib/aws-codepipeline";
2
4
  import { Artifact } from "./artifact";
3
5
  import { Segment, SegmentConstructed } from "./segment";
4
6
  import { Pipeline } from "./pipeline";
@@ -11,7 +13,7 @@ export interface PipelineSegmentProps {
11
13
  * The command(s) to build the stack.
12
14
  * @example "cdk synth StackName --strict --exclusively"
13
15
  */
14
- readonly command: string | string[];
16
+ readonly project: ProjectProps;
15
17
  /**
16
18
  * The environmental variables for the build stage.
17
19
  */
@@ -56,3 +58,23 @@ export declare class PipelineSegment extends Segment {
56
58
  constructor(props: PipelineSegmentProps);
57
59
  construct(scope: Pipeline): SegmentConstructed;
58
60
  }
61
+ export interface PipelineSegmentConstructedProps {
62
+ readonly stack: Stack;
63
+ readonly project: ProjectProps;
64
+ readonly environmentVariables?: {
65
+ [key: string]: BuildEnvironmentVariable;
66
+ };
67
+ readonly stackName?: string;
68
+ readonly account?: string;
69
+ readonly region?: string;
70
+ readonly input: Artifact;
71
+ readonly extraInputs?: Artifact[];
72
+ readonly output?: Artifact;
73
+ readonly outputFileName?: string;
74
+ readonly manualApproval?: Boolean;
75
+ }
76
+ export declare class PipelineSegmentConstructed extends SegmentConstructed {
77
+ readonly name: string;
78
+ readonly actions: IAction[];
79
+ constructor(scope: Pipeline, id: string, props: PipelineSegmentConstructedProps);
80
+ }